Skip to content
GitLab
Menu
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
69dbe11f
Verified
Commit
69dbe11f
authored
Dec 28, 2018
by
Sébastiaan Versteeg
Browse files
Fix new event saving
parent
d8509d2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/models.py
View file @
69dbe11f
...
...
@@ -299,12 +299,13 @@ class Event(models.Model, metaclass=ModelTranslateMeta):
{
'send_cancel_email'
:
_
(
"This organiser does not "
"have a contact mailinglist."
)})
if
self
.
published
:
if
(
self
.
price
!=
self
.
_price
if
(
self
.
price
!=
self
.
_price
and
self
.
_registration_start
and
self
.
_registration_start
<=
timezone
.
now
()):
errors
.
update
(
{
'price'
:
_
(
"You cannot change this field after "
"the registration has started."
)})
if
(
self
.
registration_start
!=
self
.
_registration_start
if
(
self
.
_registration_start
and
self
.
registration_start
!=
self
.
_registration_start
and
self
.
_registration_start
<=
timezone
.
now
()):
errors
.
update
(
{
'registration_start'
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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