Make a number range filter in change list

50 views
Skip to first unread message

yillkid

unread,
Jun 8, 2012, 5:37:20 AM6/8/12
to django...@googlegroups.com
Hi all, I want to add a filter in my change list,
user can input maximum and minimum number,
after press ok button, template will render output data in change list.

There is my model.py :

class test(models.Model):
    odd_even = models.DecimalField(max_digits = 2, decimal_places = 2)

I have already read the Django document, and still don't know how to do that.
Can anyone give me a hint ?

yillkid

unread,
Jun 11, 2012, 6:37:15 AM6/11/12
to django...@googlegroups.com
anybody give me a hint ?

I find this: http://djangosnippets.org/snippets/1104/

But ... how to use that in change list ?

yillkid於 2012年6月8日星期五UTC+8下午5時37分20秒寫道:
Reply all
Reply to author
Forward
0 new messages