Hi. I'm getting the following ValidationError in a ModelForm that's returning True for the form's is_valid() function but is throwing this ValidationError when the form's save() function is being called. Running save(commit=False).save() has no effect.
This view is used to both create new Versions and edit existing Versions. The ValidationError only happens when response['versionform'] represents a Version that's not yet in the database. Editing an existing Version works fine. I created a second test case with just a DateTimeField and that's working, so it's probably something in my code. Trackback: http://dpaste.com/108336/ views.py: http://dpaste.com/108337/ Lines: 105, 110 In Line 105, is_valid() returns True. In Line 110, I get the ValidationError. models.py: http://dpaste.com/108340/ Line: 33 Here is where the DateTimeField is being defined. forms.py: http://dpaste.com/108341/ Lines: 10-13 Here is the form for Version. urls.py: http://dpaste.com/108343/ Lines: 5, 7 Here are the patterns which cause the failure. Any thoughts? -- Cortland Klein <m...@pixelcort.com> +1 408 506 9791 http://pixelcort.com/ 2260 California Street #13 Mountain View, CA, USA 94040 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---