Thursday, June 28, 2012

SimpleListFilter filter UserProfile

Hi all !

I want filter a field of UserProfile (field name: timestamp),

models.py:   http://dpaste.com/764723/

admin.py:   http://dpaste.com/764724/

But when I press the filter, browser show:   http://dpaste.com/764725/

--- --- --- --- --- --- --- --- --- ---

According the error message, I can get class "UserProfile",
but if I want to  filter timestamp, how should I do ?

thx :-)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/EpIYy3gEdUUJ.
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 http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment