Fix admin url to point to right model (#5319)

This commit is contained in:
Marcel Pörner 2023-07-23 14:32:14 +02:00 committed by GitHub
parent 25334c0d91
commit 9b377ccfbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@
{% block actions %}
{% if user.is_staff and perms.company.change_company %}
{% url 'admin:company_supplierpart_change' part.pk as url %}
{% url 'admin:company_manufacturerpart_change' part.pk as url %}
{% include "admin_button.html" with url=url %}
{% endif %}
{% if roles.purchase_order.change %}