refactor(orders): relax delivery address and date requirements for non-draft orders

- Updated order creation and update logic to allow saving orders without a delivery address or date, regardless of order status.
- Removed strict validation for delivery fields in the Delivery model, enabling more flexible order handling.
- Adjusted order form to reflect changes in required fields for delivery information.
This commit is contained in:
2026-01-27 14:19:33 +03:00
parent 2aed6f60e5
commit c80e2a5eca
3 changed files with 47 additions and 91 deletions

View File

@@ -581,7 +581,7 @@
<div class="row g-3 mb-3">
<div class="col-md-6">
<label for="{{ form.address_street.id_for_label }}" class="form-label">
Улица <span class="text-danger">*</span>
Улица
</label>
{{ form.address_street }}
{% if form.address_street.errors %}
@@ -590,7 +590,7 @@
</div>
<div class="col-md-3">
<label for="{{ form.address_building_number.id_for_label }}" class="form-label">
Дом <span class="text-danger">*</span>
Дом
</label>
{{ form.address_building_number }}
{% if form.address_building_number.errors %}