diff --git a/forms.py b/forms.py index 1d8a017..efa9a7e 100644 --- a/forms.py +++ b/forms.py @@ -36,4 +36,4 @@ class DeliverFeeForm(djangoforms.ModelForm): item = forms.TypedChoiceField(choices=PackageTypes, initial='Envelope [menos de 1kg]') class Meta: model = DeliverFee - exclude = ['dest_lng','dest_lat', 'source_lat', 'source_lng','request_user', 'item', 'request_date_time', 'closed', 'state'] \ No newline at end of file + exclude = ['dest_lng','dest_lat', 'source_lat', 'source_lng','request_user', 'item', 'request_date_time', 'closed', 'state', 'request_datetime'] \ No newline at end of file diff --git a/models.py b/models.py index c2cd959..21ba8fc 100644 --- a/models.py +++ b/models.py @@ -15,6 +15,7 @@ class AppUser(db.Model): name = db.StringProperty() phone = db.StringProperty() photo = db.StringProperty() + request_datetime = db.DateTimeProperty(auto_now=True) class DeliverFee(db.Model): source_address = db.StringProperty()