django.contrib.gis.forms.fields.GeometryField completely ignores the required attribute in its clean() method. Instead it checks if the model field is nullable, which needlessly ties forms and model code. I realized this because I have a model with a non-nullable GeometryField but need a non-required GeometryField in my form, because if it's null I set it inside clean().
I wanted to confirm if this should be considered a bug before opening a ticket. My proposed solution would be to call Field's clean() instead of checking self.null. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---