Improves query efficiency for shelve buttons
About 50 fewer queries (yikes)
This commit is contained in:
parent
368d2cd716
commit
3d3ab6433e
6 changed files with 9 additions and 8 deletions
|
@ -6,7 +6,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block dropdown-list %}
|
||||
{% for shelf in request.user.shelf_set.all %}
|
||||
{% for shelf in user_shelves %}
|
||||
<li role="menuitem" class="dropdown-item p-0">
|
||||
<form name="shelve" action="/shelve/" method="post">
|
||||
{% csrf_token %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue