Re: newforms and DateField

2007-09-03 Thread Pigletto
You may also try: http://www.djangosnippets.org/snippets/391/ --~--~-~--~~~---~--~~ 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 f

Re: newforms and DateField

2007-09-03 Thread Alex Koshelev
There is no way to use admin's calendar into regular pages with newforms. You have to implement it by yourself. On 3 сент, 11:07, picky <[EMAIL PROTECTED]> wrote: > That's what I was thinking. I try it but I don't fuind how to display > calendar button. > I don't see anything in http code of an a

Re: newforms and DateField

2007-09-03 Thread picky
That's what I was thinking. I try it but I don't find how to display calendar button. I don't see anything in http code of an admin page which contains a DateField. Mathieu On Sep 1, 11:47 pm, "Peter Melvyn" <[EMAIL PROTECTED]> wrote: > On 8/31/07, picky <[EMAIL PROTECTED]> wrote: > > > I try t

Re: newforms and DateField

2007-09-01 Thread Peter Melvyn
On 8/31/07, picky <[EMAIL PROTECTED]> wrote: > I try to create a form with forms.form_for_model but I just get a text > widget for my DateField object. I did not try it yet, but in principle, you should set class attribute of corresponding widget to vDateField and include related JavaScripts fro

newforms and DateField

2007-08-31 Thread picky
Hi, I would like to know if there is a way to have the same javascript calendar of admin pages when I use newforms from a model containing DateField ? I try to create a form with forms.form_for_model but I just get a text widget for my DateField object. Thanks for your help Picky --~--~-