Re: Years

2009-02-13 Thread bax...@gretschpages.com
Perfect. Thanks! --~--~-~--~~~---~--~~ 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+uns

Re: Years

2009-02-13 Thread raj
Better ways? You mean something as simple as this? YEAR_CHOICES= [(str(y), str(y)) for y in range(1901,date.today().year +1)] .. year= forms.ChoiceField (choices=YEAR_CHOICES) Or something else? --~--~-~--~~~--

Re: Years

2009-02-13 Thread Daniel Roseman
On Feb 13, 4:45 pm, "bax...@gretschpages.com" wrote: > I need a YearField of sorts, where users can select a year (for their > car), and I'm trying to figure out how best to implement it. I'd need > roughly 1901 to present. I know I could just put them all in choices, > but that seems messy and a