List Filter Age range

86 views
Skip to first unread message

Anderson

unread,
May 11, 2014, 9:09:59 AM5/11/14
to django...@googlegroups.com
Hi there.

I'm having a problem with filter a model by age range,  is a DateField but in the html I would like   2 input text to type ages. So far I only see filter by list not input text.

Any ideas?

--
Anderson Dias Borges
Senior Analyst Developer

Tu cumprirás o desejo do meu coração se eu Te buscar...
I can't see but I'll take my chances
To hear You call my name

Venkatraman S

unread,
May 13, 2014, 3:07:43 AM5/13/14
to django...@googlegroups.com
# django-filters does awsum stuff with filtering.
# create a form with 2 date fields and then use it as an input in your filtering function(in the view)


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAin48UUxE%3DFF91guC6OYxP9%3DNLRLgBseXPM_r8oR8O6Equb7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages