|
List Info
Thread: newb: date_of_birth field using SelectDateWidget
|
|
| newb: date_of_birth field using
SelectDateWidget |
  United States |
2007-02-27 10:59:57 |
Can someone provide me an example for date_of_birth field
using
SelectDateWidget?
Thank you.
--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: newb: date_of_birth field using
SelectDateWidget |
  United States |
2007-02-27 14:55:29 |
I need to get it into Separate Year, Month, Day (1-31)
Format using
SelectDateWidget.
On Feb 27, 11:59 am, "johnny" <rampet... gmail.com> wrote:
> Can someone provide me an example for date_of_birth
field using
> SelectDateWidget?
>
> Thank you.
--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: newb: date_of_birth field using
SelectDateWidget |
  United States |
2007-02-27 18:03:37 |
newsforms doctest demonstrates how to use SelectDateWidget:
trunk/tests/regressiontests/forms/tests.py
--
Jeff Bauer
Rubicon, Inc.
--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: newb: date_of_birth field using
SelectDateWidget |
  United States |
2007-02-27 19:40:39 |
I have it like this in my form:
birth= forms.DateField(SelectDateWidget('birth',
years=range(today.year,1900,-1)))
In my template:
<p>
<label for="id_birth">Date of
Birth:</label> {{ form.birth_year }}
{{ form.birth_month }} and {{ form.birth_day }}
{% if form.birth.errors %}*** {{
form.birth.errors|join:", " }}{%
endif %}
</p>
For some reason, template is not displaying it.
--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: newb: date_of_birth field using
SelectDateWidget |
  United States |
2007-02-28 14:23:43 |
Anyone?
On Feb 27, 8:40 pm, "johnny" <rampet... gmail.com> wrote:
> I have it like this in my form:
> birth= forms.DateField(SelectDateWidget('birth',
> years=range(today.year,1900,-1)))
>
> In my template:
> <p>
> <label for="id_birth">Date of
Birth:</label> {{ form.birth_year }}
> {{ form.birth_month }} and {{ form.birth_day }}
> {% if form.birth.errors %}*** {{
form.birth.errors|join:", " }}{%
> endif %}
> </p>
>
> For some reason, template is not displaying it.
--~--~---------~--~----~------------~-------~--~----~
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 from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
[1-5]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|