1.1.0
Swappable models - 2022-03-16
Added
- Added Swappable models feature allowing to cusomize all Salesman models.
- Added
select_related_fields
to Order serializer Meta allowing for more control over the queryset in views. - Added additional Basket modifier hooks for "setup" and "finalize", updated docs for modifiers.
Changed
- Refactored Admin module.
- Renamed
prefetched_fields
toprefetch_related_fields
in Order serializer Meta. - Renamed
api.py
modules toviews.py
. - Modifier
add_extra_row
method now requiresrequest
as argument and accepts additional optionalidentifier
argument. - Removed
get_statuses
class method andstatuses
property on Order model in favor of newStatus
class property.
Removed
- Removed support for
Django 3.1
. - Removed
format_customer
admin formatter. - Removed
salesman.core.models.JSONField
in favor of Django'smodels.JSONField
.