Commit 5173fe8a authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'fix/event-save' into 'master'

Fix new event saving

See merge request !1117
parents 347ac1ee 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':
......
Supports Markdown
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