Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
b4eb7526
Commit
b4eb7526
authored
Nov 30, 2016
by
Joren Vrancken
Browse files
Fix canceldate not being migrated correctly
parent
5420e848
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/events/management/commands/migrateevents.py
View file @
b4eb7526
...
...
@@ -176,7 +176,7 @@ class Command(BaseCommand):
cancelled_date
=
registration_data
[
'canceled'
]
if
cancelled_date
:
new_registration
.
cancelled
_date
=
naive_to_aware
(
new_registration
.
date_
cancelled
=
naive_to_aware
(
cancelled_date
)
new_registration
.
save
()
...
...
website/events/models.py
View file @
b4eb7526
...
...
@@ -291,7 +291,8 @@ class Registration(models.Model):
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'
),
null
=
True
,
blank
=
True
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment