Pass queryset to overridden django admin template -
is possible me pass results of queryset change_list.html
when i'm overriding it?
for example: i've overridden admin template change_list , want add dropdown in list view shows available users user
model.
queryset
users = user.objects.all() {'user': users} #something along lines of rendering change_list.html
change_list.html
{% u in users %} {{ u.name }} {% endfor %}
yes is. (everything possible.) try override admin class transmit queryset overridden template.
Comments
Post a Comment