Oh! I have found a precious discussion on SO.
http://stackoverflow.com/questions/38601/using-django-time-date-widgets-in-custom-form
I think you might like the highest-voted solution.
Kenny
On Mon, May 9, 2011 at 9:28 PM, Kenny Meyer wrote:
> s/sting/string
>
> On Mon, May 9, 2011 at 9:27 PM,
s/sting/string
On Mon, May 9, 2011 at 9:27 PM, Kenny Meyer wrote:
>> However, I keep getting validating errors with datetime, probably is
>> how I am entering the data. I have also tried the SplitDateTimeWidget
>> I am getting the same
>> validation error
> These are the valid input formats:
> ht
> However, I keep getting validating errors with datetime, probably is
> how I am entering the data. I have also tried the SplitDateTimeWidget
> I am getting the same
> validation error
These are the valid input formats:
http://docs.djangoproject.com/en/dev/ref/forms/fields/#django.forms.DateTimeFi
Thanks so much for your response. I have done all that and I have
model forms working for other models.
However, I keep getting validating errors with datetime, probably is
how I am entering the data. I have also tried the SplitDateTimeWidget
I am getting the same
validation error. I have tried man
On Mon, May 9, 2011 at 10:55 AM, Kevin Miller wrote:
> Dear all,
>
> I am new to django but is in the process of building my first website. I have
> been ok for a while as I am not new to programming in python. However, I have
> one problem that I cannot figure out the proper way to do it. I want
Dear all,
I am new to django but is in the process of building my first website. I have
been ok for a while as I am not new to programming in python. However, I have
one problem that I cannot figure out the proper way to do it. I want to use
ModelForm but have a DateTime Field. I can do it with
6 matches
Mail list logo