creating a widget might be an overkill in this case
adding a custom class to the input field via the attrs parameter
should cover it nicely. i use this approach without the need for a
special widget.
On 4/15/07, Ray Cote <[EMAIL PROTECTED]> wrote:
>
> Thanks, that is very helpful.
>
> At 11:45
You will want to check out how to create widgets. Here might be an
example you are looking for as well as a an example in general.
http://code.djangoproject.com/browser/django/branches/newforms-admin/django/contrib/admin/widgets.py
On
2007-04-14 11:32:53 -0600, Ray Cote <[EMAIL PROTECTED]>
Hello:
I'm trying to figure out the approved Django way to add a Javascript
date picker (pop-up calendar) to a field while using newforms.
One way I see people adding date pickers is to give the field a
specific class which the Javascript then attaches to during onload of
the page. However,
3 matches
Mail list logo