Commit 8306ae57 by Bach Dániel

school: call Person.full_clean() before saving

parent 398bd6b5
...@@ -83,6 +83,10 @@ class Person(models.Model): ...@@ -83,6 +83,10 @@ class Person(models.Model):
else: else:
return self.code return self.code
def save(self, *args, **kwargs):
self.full_clean()
super(Person, self).save(*args, **kwargs)
class Meta: class Meta:
verbose_name = _('person') verbose_name = _('person')
verbose_name_plural = _('persons') verbose_name_plural = _('persons')
......
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 sign in to comment