Files
vontor-cz/backend/commerce
Brunobrno f9636d1464 Add custom exception handler and improve order logic
Introduced a custom DRF exception handler to convert Django ValidationError to DRF ValidationError and registered it in settings. Improved Order model's calculate_total_price method to avoid accessing related fields before the object is saved. Updated OrderCreateSerializer to save the order after adding discounts and payment, ensuring total price is recalculated. Added utility functions and a rounded DateTime field in a new utils.py.
2026-02-01 03:17:49 +01:00
..
2026-01-25 23:19:56 +01:00