class ModelForm(forms.Form):
test_date = forms.DateField(required=False)
,,,
INSERT INTO SQL:
obj.test_date = test_date
All OK for default format ( 2009-12-31 ). But for InputFormat
"30.12.2009" - error. How to change InputFormat for all forms in
application ?
On 10 авг, 20:08, Karen
On Mon, Aug 10, 2009 at 12:00 PM, Bdfy wrote:
>
> How to add a phrase "SET DATESTYLE =" bla-bla-bla "" for everyone SQL
> query ?
>
Why do you think you want to do that? The Django ORM takes the date(time)
values coming from the database and converts them do Python
How to add a phrase "SET DATESTYLE =" bla-bla-bla "" for everyone SQL
query ?
--~--~-~--~~~---~--~~
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
3 matches
Mail list logo