Add upload form and update Photo model
This commit is contained in:
parent
c43f3612e3
commit
555c6c0d89
5 changed files with 211 additions and 38 deletions
7
gallery/templates/admin/gallery/album/change_form.html
Normal file
7
gallery/templates/admin/gallery/album/change_form.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{% extends "admin/change_form.html" %}
|
||||
{% block object-tools-items %}
|
||||
{{ block.super }}
|
||||
<li>
|
||||
<a href="{% url 'admin:gallery_album_upload' album_id=original.id %}" class="button">Upload Photos</a>
|
||||
</li>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue