Re: Hidden datetime field in newforms

2007-02-19 Thread juampa
Collin: I did not know enough earlier to understand your answer, but I do now. Thanks. Juan Pablo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: Hidden datetime field in newforms

2007-02-19 Thread juampa
On Feb 19, 3:55 pm, "Collin Grady" <[EMAIL PROTECTED]> wrote: > Define a clean_date_posted to trim the decimals? But the question is where. After you create the form class with FormClass = forms.models.form_for_instance(anInstance) . . . form = FormClass(request.POST) the form is bound to the

Re: Hidden datetime field in newforms

2007-02-19 Thread Collin Grady
Define a clean_date_posted to trim the decimals? On Feb 19, 8:25 am, "juampa" <[EMAIL PROTECTED]> wrote: > I have a certain model that contains a datetime field and I am using > newforms to create and edit entries for this model. One of the fields > in the model is a datetime set only for an ent

Hidden datetime field in newforms

2007-02-19 Thread juampa
I have a certain model that contains a datetime field and I am using newforms to create and edit entries for this model. One of the fields in the model is a datetime set only for an entry creation. To modify one of these entries, I create a form from the instance (form_for_instance()) and set th