fix(units): добавить проверку прав PlatformAdmin и исправить запрос связи

- Добавить name="submit" к кнопке формы
- Запретить PlatformAdmin доступ к CRUD операций UnitOfMeasure
- Исправить запрос sales_units_using через ProductSalesUnit.objects.filter

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-18 19:43:18 +03:00
parent 1d4bbf6a6d
commit e10f2c413b
2 changed files with 17 additions and 2 deletions

View File

@@ -97,7 +97,7 @@
<a href="{% url 'products:unit-list' %}" class="btn btn-outline-secondary">
Отмена
</a>
<button type="submit" class="btn btn-primary">
<button type="submit" name="submit" class="btn btn-primary">
<i class="bi bi-check-lg"></i> {{ submit_text }}
</button>
</div>