Hi, I have a few date fields, until recently I just used a text field to get the value and store it in the GAE datastore, it maps the date in into y-m-d format. I needed to change the format and put a validation to check the user input, following are the changes I made to the form, startDate = forms.DateField(input_formats=['%d/%m/%Y'], widget=forms.TextInput(attrs={'class':'inp100','maxlength':'10'}), required=False)
The validation part is working correctly. But when i try to remove the date value from the form and try to update, the old values are still retained, they are not made into None or null. NOTE: Updating the date with another valid date seems to work. I have also changed the initial value to get the date.strftime(format). Any help will be appreciated, as I am new to Python and Django. I am using Django 0.96 --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---