djangosnippets.org: Latest snippets tagged with 'prepopulate'https://djangosnippets.org/tags/prepopulate/2008-09-16T14:59:53.030240-05:00Making prepopulate_from work with ForeignKeys and other sorts of choice fields
2008-09-16T14:59:53.030240-05:00joshohttps://djangosnippets.org/snippets/1059/<p>This is a fairly small bit template that, if placed in your_project_dir/templates/admin/prepopulated_fields_js.html will override the template that is normally pulled by the preopulated fields templatetag in the admin. The result is that you can successfully specify a ForeignKey or other field involving choices as a source for prepopulate_from in your …</p>
Freely redistributable