Re: Django Admin Form clean method override only working for one exception

2018-01-04 Thread dean raemaekers
Thanks Julio! This worked. On Thursday, January 4, 2018 at 2:59:16 PM UTC+2, Julio Biason wrote: > > Hi Dean, > > You forgot to call the form clean method (the first line after your `def > clean` should be `super().clean()` as shown in the documentation: > https://docs.djangoproject.com/en/2.0/

Re: Django Admin Form clean method override only working for one exception

2018-01-04 Thread Julio Biason
Hi Dean, You forgot to call the form clean method (the first line after your `def clean` should be `super().clean()` as shown in the documentation: https://docs.djangoproject.com/en/2.0/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other ). On Thu, Jan 4, 2018 at 7:06 A

Django Admin Form clean method override only working for one exception

2018-01-04 Thread dean raemaekers
Hello, I am trying to override the Forms in the Django Admin interface to have custom exceptions in the clean() method. This works for my first validation, but it doesn't work for a second one in the same form, or on another form at all. I am wondering if I have the syntax wrong for multiple v