set initial value for field when a model insert page loaded in django admin
438 views
Skip to first unread message
sjsade...@gmail.com
unread,
Feb 18, 2017, 1:35:54 AM2/18/17
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 users
hi, i want set initial value for field when a model insert page loaded in django admin. i think i can do this work with get_field_queryset method but in django there is no toturial for get_field_queryset. how to do this work? thanks ...
Derek
unread,
Feb 18, 2017, 9:07:20 AM2/18/17
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 users
I have cut and trimmed this from of some of my own code, so may not be 100%: