Commit b4eb7526 authored by Joren Vrancken's avatar Joren Vrancken
Browse files

Fix canceldate not being migrated correctly

parent 5420e848
...@@ -176,7 +176,7 @@ class Command(BaseCommand): ...@@ -176,7 +176,7 @@ class Command(BaseCommand):
cancelled_date = registration_data['canceled'] cancelled_date = registration_data['canceled']
if cancelled_date: if cancelled_date:
new_registration.cancelled_date = naive_to_aware( new_registration.date_cancelled = naive_to_aware(
cancelled_date) cancelled_date)
new_registration.save() new_registration.save()
......
...@@ -291,7 +291,8 @@ class Registration(models.Model): ...@@ -291,7 +291,8 @@ class Registration(models.Model):
blank=True blank=True
) )
date = models.DateTimeField(_('registration date'), auto_now_add=True) date = models.DateTimeField(_('registration date'),
default=timezone.now)
date_cancelled = models.DateTimeField(_('cancellation date'), date_cancelled = models.DateTimeField(_('cancellation date'),
null=True, null=True,
blank=True) blank=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment