Lars van de Kerkhof
670fc947a3
Ignore expired vouchers during order placement (#3217)
... because the basket flow also ignores them.
6 роки тому
Leandro Gomez
01584b74ad
Fix isort check
6 роки тому
Leandro Gomez
38e6bd2fbb
Pass login object to EmailAuthenticationForm
Add request object to login form kwargs
6 роки тому
Victor Munene
ebde2b6269
delete test MEDIA_ROOT dir after tests have completed.
6 роки тому
Victor Munene
e4aa2a1b90
remove assumptions about upload paths and filenames
6 роки тому
Victor Munene
a1f3f832dc
do not hard code IDs and display_order values as those values cannot be predicted.
6 роки тому
Victor Munene
e69f776c62
add OSCAR_THUMBNAIL_DEBUG setting that controls whether oscar_thumbnail templatetag raises errors or not
6 роки тому
Samir Shah
3f67ce9b76
Apply isort fixes on the whole project.
6 роки тому
Nasir Hussain
aa791070c5
Replaced deprecated assertEquals with assertEqual
6 роки тому
Nasir Hussain
fda27a183d
Fixed #3171 Applied offer on min num of basket and benefit items
6 роки тому
Joseph Wayodi
a6a73b65e5
Change "upload_to" argument in FileField/ImageField model-field definitions to a callable
So that migrations are not required for changes to the
"OSCAR_IMAGE_FOLDER" setting, for projects that have not forked the
"catalogue" app.
6 роки тому
Joseph Wayodi
d6f19b7785
Add migrations missing from forked apps in "tests._site" project
6 роки тому
Samir Shah
1671aaeec0
Fix coverage reporting on travis
6 роки тому
Lars van de Kerkhof
9913be1dc6
Reduce number of queries performed by Range to 1. (#3071)
6 роки тому
Samir Shah
f6851842a8
Catch NoReverseMatch exceptions in default_access_fn, and log a deprecation warning.
6 роки тому
Victor Munene
ea4a7c87c3
refactor ProductQuerySet.base_queryset to use Exists instead of Count to check product has options
6 роки тому
dfirst
146ebb0149
Fix order and line pipelines in tests (#3092)
6 роки тому
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 роки тому
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 роки тому
dfirst
3cd865a4c5
Fix handling of missing lines in wishlist views (#3053)
6 роки тому
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 роки тому
Alexander Gaevsky
8e3be1d748
Explicitly set request error handlers in the test site URLconf.
6 роки тому
Alexander Gaevsky
c90ccd56da
Move test site templates to the `oscar` subfolder.
6 роки тому
Alexander Gaevsky
04a8e3b465
Remove hacky setting `OSCAR_MAIN_TEMPLATE_DIR` completely.
6 роки тому
Alexander Gaevsky
a75d6ee819
Specify full path to Oscar templates, including `oscar` prefix.
6 роки тому
Basil Dubyk
1f84c57e06
Add `_option_as_text` method to `AbstractProductAttributeValue` model
6 роки тому
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 роки тому
Alexander Gaevsky
b627fa7954
Add javascript to enable client-side product image sorting in dashboard (#2287)
6 роки тому
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 роки тому
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 роки тому
Alexander Gaevsky
d8404f2fb0
Extend tests for discount tax calculation.
6 роки тому
Alexander Gaevsky
996739e662
Add test for app forking from current folder, refs PR #2995.
6 роки тому
Alexander Gaevsky
33389268a4
Add test for app forking with absolute target path, refs PR #2995.
6 роки тому
Alexander Gaevsky
43cb0b7da7
Implement test for forking third party application, which has Oscar-compatible app config.
6 роки тому
Alexander Gaevsky
cca43aa4d1
Remove form from the basket line formset and bypass its validation if related model instance does not exist any more.
6 роки тому
Paul J Stevens
fa124a8a21
[issue2773] add test for negative line value
6 роки тому
Alexander Gaevsky
3924b4b2b2
Extract promotions application out of the Oscar core.
7 роки тому
Alexander Gaevsky
f959e9213f
Update test in case if home page has redirection.
8 роки тому
Roel Bruggink
a5096da38a
Add is_public field to Product model (#2935)
6 роки тому
Highbiza migration experts
43c5db8fbc
Added method to Product manager for filtering on product attributes. (#2888)
6 роки тому
Paul J Stevens
ff9afb6011
remove end_datetime from conditionaloffer fixture
6 роки тому
Alexander Gaevsky
d25c3f8bfc
Add tests for dashboard stats aggregation for non-staff users.
6 роки тому
Aliaksei Urbanski
dc435b4d79
Add the TestDashboardIndexForPartnerUser test case
Update the TestDashboardIndexForAnonUser test case
7 роки тому
Aliaksei Urbanski
d2b21f29ff
Limit access to dashboard for partners to show only their stats
7 роки тому
Highbiza migration experts
4fa6709b9a
Improve efficiency of category_tree template tag. (#2895)
7 роки тому
dfirst
3698773459
Allow searching for partial email addresses in dashboard user search form
7 роки тому
dfirst
1081d73c1a
Fix normalise_email to handle email addresses with multiple @ symbols
7 роки тому
Craig Loftus
25a6baa1eb
Properly populate user instance passed to password validators
7 роки тому
ayub-khan
cceba2912a
issue-id=2843
Add functionality to check if a voucher is
available for a basket or not.
7 роки тому
dfirst
420d2ec31c
Add related multiple widget wrapper for use with catalogue.Option
Also refactor catalogue option group and option tests.
7 роки тому