0๐
โ
So, I was missing a
return self
in the form validation, as told from Raunak Agarwal, and I was using an incorrect method for returning errors as told from Mark Lavin.
But over to all is that
if (bearing != None) or (bearing < 0) or (bearing > 360):
is returning always False. This is the correct condition:
if (bearing == None) or (bearing < 0) or (bearing > 360):
Thanks to all!
๐คMarco Fedele
- [Answer]-How do I integrate a custom app to use breadcrumbs?
- [Answer]-Django 1.6.1, Form, Is there a elegant way to render old data and edit old data from a model?
- [Answer]-Angular filter weird error even after the functionality works
- [Answer]-How do I make a form in the list view in django admin?
Source:stackexchange.com