dfirst
146ebb0149
Fix order and line pipelines in tests (#3092)
6 lat temu
dfirst
3cd865a4c5
Fix handling of missing lines in wishlist views (#3053)
6 lat temu
Alexander Gaevsky
a75d6ee819
Specify full path to Oscar templates, including `oscar` prefix.
6 lat temu
Alexander Gaevsky
b627fa7954
Add javascript to enable client-side product image sorting in dashboard (#2287)
6 lat temu
Alexander Gaevsky
cca43aa4d1
Remove form from the basket line formset and bypass its validation if related model instance does not exist any more.
6 lat temu
Alexander Gaevsky
3924b4b2b2
Extract promotions application out of the Oscar core.
7 lat temu
Alexander Gaevsky
f959e9213f
Update test in case if home page has redirection.
8 lat temu
Roel Bruggink
a5096da38a
Add is_public field to Product model (#2935)
6 lat temu
Alexander Gaevsky
d25c3f8bfc
Add tests for dashboard stats aggregation for non-staff users.
7 lat temu
Aliaksei Urbanski
dc435b4d79
Add the TestDashboardIndexForPartnerUser test case
Update the TestDashboardIndexForAnonUser test case
7 lat temu
Aliaksei Urbanski
d2b21f29ff
Limit access to dashboard for partners to show only their stats
7 lat temu
dfirst
3698773459
Allow searching for partial email addresses in dashboard user search form
7 lat temu
dfirst
420d2ec31c
Add related multiple widget wrapper for use with catalogue.Option
Also refactor catalogue option group and option tests.
7 lat temu
dfirst
f42e5d1d30
Added ability to manage Catalogue.Option from the dashboard
7 lat temu
Joseph Wayodi
fbf8bac4c5
Merge Oscar and Django configs
- Move Oscar app configs into Django app config classes
- Rename Oscar/Django apps' app config module
- Remove "oscar.get_core_apps()" and its app overriding
- Remove "oscar.OSCAR_CORE_APPS"
- Port app forking code to work with Django app registry
- Port class loading code to use app configs to get app properties
7 lat temu
SrdjanCosicPrica
82e605c841
Fix form errors when going back to first step in dashboard OfferWizard (#2819)
7 lat temu
Alexander Gaevsky
7244e7b4cd
Update tests.
8 lat temu
dfirst
79eb14e93b
Improve validation logic of reviews sort order form
Fixes #2579 .
7 lat temu
Samir Shah
349ae18be2
Reduce maximum line length in flake8 config to 119 characters.
7 lat temu
Samir Shah
93fb9555c3
Drop support for category URLs without a primary key.
See #1674 .
7 lat temu
Samir Shah
100edceea1
Remove support for deprecated product alert email templates.
7 lat temu
Aliaksei Urbanski
ed8f9f1206
Make OrderPlacementMixin more customizable (#2732)
Pass communication event type code to OrderPlacementMixin.get_message_context()
7 lat temu
Samir Shah
a7edc8ba2f
Drop mock in favour of unittest.mock
7 lat temu
Samir Shah
e2b8a5b63a
Replace calls to ugettext with gettext.
7 lat temu
Samir Shah
13e2ed127c
Remove all uses of six.
7 lat temu
Samir Shah
8560a90490
Replace calls to super(ClassName, self) with super().
7 lat temu
Samir Shah
ec3791c371
Remove py2-specific imports, tests and code branches.
7 lat temu
Samir Shah
e2bed3fd95
Remove u prefix from all Python strings.
7 lat temu
Samir Shah
87625ef6b6
Use Django's class-based authentication views.
The procedural views were deprecated in Django 1.11 and will be removed in Django 2.1.
7 lat temu
Samir Shah
1651bf230f
Upgrade select2 to v4.0, and refactor RemoteSelect widget to work with it.
8 lat temu
Samir Shah
86fe75de4d
Remove unnecessary webob dependency from oscar.test utils.
Fixes #2547 .
8 lat temu
erickmk
9a14f5e28a
Remove several compatibility helpers for Django < 1.11.
8 lat temu
Samir Shah
8a3288da43
Drop support below Django 1.11
8 lat temu
yn_coder
2f76e31e08
Mark notification as read only when the detail view is visited. Fixes #2548.
8 lat temu
Samir Shah
89ff0b3da4
Fix URL character validation in dashboard PageUpdateForm.
Also fix the max_length on the url field. The underlying model field has
a max_length of 100, so it is invalid to have a larger value here.
DRY out dashboard page update/create views.
Refactor tests - perform tests of form logic directly rather than indirectly through view code.
Fixes #2559 .
8 lat temu
Samir Shah
6b0267ed3a
Make ConditionalOffer.priority editable from dashboard. Fixes #2494.
The priority isn't strictly a "restriction", but this seems like the most sensible form to add it to.
8 lat temu
Samir Shah
2c5c428e35
Order items in ProductAlertListView by date created, descending.
8 lat temu
Joseph Wayodi
956b5b7853
Add management of attribute options in dashboard (#2448)
8 lat temu
Samir Shah
2ee352214e
Fix site notifications generated by send_product_alerts.
Notification subjects have a max length of 255 characters, which can easily be exceeded by long product names. Change the alert logic to provide a short notification subject and put the longer content in the notification body.
This patch also modifies the notification utils to make it obvious that the positional argument is a notification subject, not a body.
8 lat temu
Samir Shah
eea76f44c0
PEP8 cleanup, stop allowing PEP8 failures on Travis.
8 lat temu
Samir Shah
c7dd981fea
Add some more tests for ProductAlert form validation.
8 lat temu
Samir Shah
17193a4d08
Don't allow multiple unconfirmed product alerts for anonymous users.
This is to prevent the possibility of spamming a user by generating lots of alert confirmation emails for product alerts.
Also allow unconfirmed alerts to be cancelled - we send a cancellation link in the confirmation email, so we should let users cancel an alert if they don't want to confirm it.
Fixes #2401 .
8 lat temu
Samir Shah
d351847f6a
Add more tests for product alerts, save alerts sent to registered users, and notes to the docs.
8 lat temu
Samir Shah
d415c34ccb
Add documentation and tests for multi_option attribute.
8 lat temu
Samir Shah
cefb76f5bb
Replace deprecated assertEquals with assertEqual in tests.
8 lat temu
Samir Shah
e690fe3165
Fix logic for determining 'hurry mode' on alerts. Fixes #2100, #2103.
8 lat temu
Alexander Gaevsky
a96079eb01
Add test for user search in dashboard when user name contains from more than 2 parts.
9 lat temu
Alexander Gaevsky
5de4cfd6cc
Extract cookies from TestApp instance, instead of Client instance. Make sure extracted basket cookie value is unquoted in the tests.
9 lat temu
Michael van Tellingen
28ea962ab6
Rename all tests files from *_tests.py to test_*.py
Better to use filenames which are commonly used in the python word then
custom ones.
9 lat temu
Michael van Tellingen
c26642732b
Remove the oscar.test.decorators module
9 lat temu