Skip to content

Commit

Permalink
use place.place_code (e.g. za-gp), not place.code (e.g. gp)
Browse files Browse the repository at this point in the history
  • Loading branch information
goose-life committed Nov 12, 2024
1 parent 418a255 commit 1cee954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indigo_app/templates/indigo_app/place/_work_chooser.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h5 class="modal-title">{% trans 'Choose a work' %}</h5>
</div>

<div class="modal-footer">
<a href="{% url 'new_work' place.code %}" class="btn btn-link create-work" target="_blank">{% trans 'Create a new work' %}</a>
<a href="{% url 'new_work' place.place_code %}" class="btn btn-link create-work" target="_blank">{% trans 'Create a new work' %}</a>
<a href="#" class="btn btn-outline-secondary" data-bs-dismiss="modal">{% trans 'Cancel' %}</a>
<input type="submit" class="btn btn-primary" value="{% trans 'OK' %}" form="work-chooser-form">
</div>
Expand Down

0 comments on commit 1cee954

Please sign in to comment.