Verified Commit 69dbe11f authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix new event saving

parent d8509d2e
......@@ -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