Samir Shah
4bdf5df9b1
Port all core templates and styles to Bootstrap 4.
Co-authored-by: Basil Dubyk <samitnuk.work@gmail.com >
Co-authored-by: Alexander Gaevsky <sasha@sasha0.ru >
Co-authored-by: Joseph Wayodi <jwayodi@gmail.com >
5 anni fa
Basil Dubyk
d4748cdb33
Remove useless line
5 anni fa
Alexander Gaevsky
18eca6f76c
Refactor report generators to be easier to extend, and fix date range filtering in CSV exports (#3501)
5 anni fa
Basil Dubyk
b14cb7ff59
Add test to check adding/removing of a voucher
5 anni fa
Viggo de Vries
603944d1dd
Add method get_attribute_values to Product model which also fetches parent product attributes (#3514)
5 anni fa
Alexander Gaevsky
31c935cf1d
Change checkout thank you view to redirect to the homepage if order not found in the session. (#3506)
5 anni fa
Samir Shah
f6157f2268
Make ProductAttributesContainer a lazy object so that initialisation is simpler.
Fixes #3258 .
5 anni fa
Paul J Stevens
1d0c704185
Add support for restricted offer combinations
Non-exclusive offers that only allow combination with specific other offers
6 anni fa
Alexander Gaevsky
680e05bf4b
Respect old-style 5-digit postal codes for Israel, which are still in use by customers.
5 anni fa
Viggo de Vries
81ec4da73a
Pass shipping charge as a kwarg to the surcharge calculator (#3481)
5 anni fa
PlayDay
dd5a151af2
Add new type field for product.Option and enhanced form rendering for options based on their type.
6 anni fa
Samir Shah
d5d5c9d6fc
Remove/rename several deprecated model fields from order and partner apps.
6 anni fa
Samir Shah
9766eb07d4
Update isort configuration, and fix imports that are not at the top of modules.
5 anni fa
Francisco Ceruti
81fd3798e0
Fix bug where conditions can be created just providing one of range, type or value (#3377)
5 anni fa
Viggo de Vries
24b349836e
Add new feature Surcharges.
6 anni fa
Basil Dubyk
8e7ee62a2e
🚧 WIP - Improve `apply` method of `MultibuyDiscountBenefit` (#3343)
Fix handling of count conditions in `MultibuyDiscountBenefit`
5 anni fa
capelito
da355e422b
Delete auto-generated offer when a voucher is deleted.
5 anni fa
Alexander Gaevsky
61ce21e09c
Do not allow boolean product attribute be required.
5 anni fa
Joseph Wayodi
628bd1e108
Add "default_app_config" when forking app
5 anni fa
Samir Shah
52480d98d1
Remove UnicodeCSVReader and a few other Python 2 compatibility shims.
6 anni fa
Samir Shah
93e7e66c2b
Add support for Django 3, drop support for Django 1.11
6 anni fa
Samir Shah
9eae894cf9
Drop deprecated functionality scheduled for removal in Oscar 2.1
6 anni fa
Samir Shah
c74c8fe1f4
Fix time-dependent tests.
Switch to using freezegun for tests that depend on date.
6 anni fa
samitnuk
2af6753c67
Add a new Communication app that manages all of Oscar's communications.
8 anni fa
Basil Dubyk
62998f2c09
Add Oscar apps to `INSTALLED_APPS` as recommended by Django
6 anni fa
Lars van de Kerkhof
cacbc1a2c7
Fixes offers failing on child products for ranges that include all products.
6 anni fa
Samir Shah
c050b7cec3
Refactor asset management so that third party assets are not committed.
6 anni fa
Lars van de Kerkhof
a3828425ad
Exclude products after completing the selection. (#3211)
6 anni fa
Lars van de Kerkhof
670fc947a3
Ignore expired vouchers during order placement (#3217)
... because the basket flow also ignores them.
6 anni fa
Victor Munene
e69f776c62
add OSCAR_THUMBNAIL_DEBUG setting that controls whether oscar_thumbnail templatetag raises errors or not
6 anni fa
Samir Shah
3f67ce9b76
Apply isort fixes on the whole project.
6 anni fa
Nasir Hussain
aa791070c5
Replaced deprecated assertEquals with assertEqual
6 anni fa
Nasir Hussain
fda27a183d
Fixed #3171 Applied offer on min num of basket and benefit items
6 anni fa
Lars van de Kerkhof
9913be1dc6
Reduce number of queries performed by Range to 1. (#3071)
6 anni fa
Samir Shah
f6851842a8
Catch NoReverseMatch exceptions in default_access_fn, and log a deprecation warning.
6 anni fa
Victor Munene
ea4a7c87c3
refactor ProductQuerySet.base_queryset to use Exists instead of Count to check product has options
6 anni fa
dfirst
146ebb0149
Fix order and line pipelines in tests (#3092)
6 anni fa
Anthony Ricaud
41c3443a2c
Fix dashboard permissions for forked apps
When looking up a URL for a forked app, the previous mechanism fetched the top level AppConfig which allows every user.
The new mechanism creates a dict of dashboard URLs/configs and does a lookup to find a DashboardConfig.
This will also raise NoReverseMatch if the URL does not exist or is not a dashboard URL.
fix https://github.com/django-oscar/django-oscar/issues/3080
6 anni fa
Anthony Ricaud
d6694b7c87
Simplify AppConfig when forking
We aren't changing `label` or `verbose_name` so let's use class inheritance instead
ref https://github.com/django-oscar/django-oscar/issues/3080
6 anni fa
Lars van de Kerkhof
0f2c6bf2c8
Retrieving product options now performs only 1 query. (#3037)
* Retrieving product options now performs only 1 query.
Also it returns all the product options combined. This makes more sense because
as the existing tests prove, there is already a way to retrieve the product_class
options and the product options separately.
6 anni fa
Alexander Gaevsky
04a8e3b465
Remove hacky setting `OSCAR_MAIN_TEMPLATE_DIR` completely.
6 anni fa
Basil Dubyk
1f84c57e06
Add `_option_as_text` method to `AbstractProductAttributeValue` model
6 anni fa
Alexander Gaevsky
6d889dd60a
Configurable thumbnail backends. (#2621)
* Implement basic abstract thumbnails generator backend
* Create `oscar_thumbnail` template tag in `image_tags`
* Add `easy_thumbnails` to `INSTALLED_APPS` in sandbox settings
* Modify `primary_image` method of `Product` model
* Override in templates Sorl's `thumbnail` tag with `oscar_thumbnail` tag
* Check that related module is installed during thumbnail class initialization
* Add params to `original` field of `ProductImageFactory`
* Add media related URLs to test settings
* Add unit tests for thumbnailer backend
* Create test helpers in `test/utils`
These helpers will be used in tests related to thumbnails
* Add tests to check `oscar_thumbnail` template tag
* Add test to check images/thumbnails deleted for deleted product
* Move `sorl-thumbnail` and `easy-thumbnails` to `extras_require`
With this change these packages can be installed as
* `pip install django-oscar[sorl-thumbnail]`
* `pip install django-oscar[easy-thumbnails]`
* Updated "Template tags" section in docs with info about `oscar_thumbnail`
* Describe `OSCAR_THUMBNAILER` setting in "Settings" section of the docs
* Add information about created thumbnail backend to the release notes
6 anni fa
Basil Dubyk
be7bff35ae
Move `run_concurrently` from `tests/utils` to `src/oscar/test/utils`
This change will allow to import `run_concurrently` helper for test
purposes in other libraries.
6 anni fa
Paul J Stevens
c1c61ef5c5
enforce max_affected_items during offer application (#2970)
* enforce max_affected_items during offer application
also restrict the usage of offer consumption to line.consume()
* improve test coverage
6 anni fa
Alexander Gaevsky
d8404f2fb0
Extend tests for discount tax calculation.
6 anni fa
Alexander Gaevsky
996739e662
Add test for app forking from current folder, refs PR #2995.
6 anni fa
Alexander Gaevsky
33389268a4
Add test for app forking with absolute target path, refs PR #2995.
6 anni fa
Alexander Gaevsky
43cb0b7da7
Implement test for forking third party application, which has Oscar-compatible app config.
6 anni fa
Paul J Stevens
fa124a8a21
[issue2773] add test for negative line value
6 anni fa