Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
Django users
Conversations
About
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts
SimpleListFilter filter UserProfile
68 views
Skip to first unread message
yillkid
unread,
Jun 28, 2012, 3:50:03 AM
6/28/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
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 :-)
Sunny Nanda
unread,
Jul 1, 2012, 12:50:50 AM
7/1/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
In the filter, you are trying the filter User objects on timestamp field which does not exist.
In line 42 of admin.py, try filtering on "userprofile__timestamp__gte"
-Sandeep
Reply all
Reply to author
Forward
0 new messages