Releases: dinoperovic/django-salesman
Releases · dinoperovic/django-salesman
1.2.1
1.2.0
1.1.6
2023-02-06
Added
- Added
is_enabled
method onPaymentMethod
class to enable per-request control.
1.1.5
2022-11-04
Added
- Add support for
Wagtail 4.0
andWagtail 4.1
.
1.1.4
2022-06-27
Added
- Add support for
Wagtail 3.0
.
Changed
- Improved mypy typing hints
1.1.3
2022-03-24
Changed
- Payment methods can now optionally return a JSON serializable data dictionary.
1.1.2
2022-03-22
Changed
- Creating an Order using
create_from_basket
no longer saves the order twice.
Fixed
- Fixed wrong sender model being sent for status changed signal.
1.1.1
2022-03-21
Added
- Added
salesman.core.typing.Product
protocol used to check product types. - Added
salesman.orders.models.BaseOrder.get_items
to mirror theBaseBasket.get_items
API.
Changed
- Renamed
DefaultSettings
toAppSettings
in config module. - Use cached properties for settings that load objects.
- Renamed
owner
field onBaseBasket
touser
for consistency withBaseOrder
.
This update requires migrations to be created (if swapped models are used) and run.
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
.
1.0.6
2022-02-08
Added
- Add support for
Django 4.0
. - Add support for
Wagtail 2.16
.
Removed
- Removed support for
Python 3.6
andPython 3.7