Implement ticket download dates (closes #15)

This commit is contained in:
Raphael Michel
2015-04-16 18:05:25 +02:00
parent 14c582d11e
commit 09b24ce606
8 changed files with 140 additions and 3 deletions

View File

@@ -81,8 +81,7 @@ class SettingsForm(forms.Form):
def __init__(self, *args, **kwargs):
self.obj = kwargs.pop('obj')
if 'initial' not in kwargs:
kwargs['initial'] = self.obj.settings
kwargs['initial'] = self.obj.settings
super().__init__(*args, **kwargs)
def save(self):

View File

@@ -73,6 +73,10 @@ DEFAULTS = {
'default': 'True',
'type': bool
},
'ticket_download_date': {
'default': None,
'type': datetime
},
'last_order_modification_date': {
'default': None,
'type': datetime