Aliaksei Urbanski
d2b21f29ff
Limit access to dashboard for partners to show only their stats
7 years ago
dfirst
3698773459
Allow searching for partial email addresses in dashboard user search form
7 years ago
dfirst
420d2ec31c
Add related multiple widget wrapper for use with catalogue.Option
Also refactor catalogue option group and option tests.
7 years ago
dfirst
f42e5d1d30
Added ability to manage Catalogue.Option from the dashboard
7 years ago
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 years ago
SrdjanCosicPrica
82e605c841
Fix form errors when going back to first step in dashboard OfferWizard (#2819)
7 years ago
Alexander Gaevsky
7244e7b4cd
Update tests.
8 years ago
dfirst
79eb14e93b
Improve validation logic of reviews sort order form
Fixes #2579 .
7 years ago
Samir Shah
349ae18be2
Reduce maximum line length in flake8 config to 119 characters.
7 years ago
Samir Shah
93fb9555c3
Drop support for category URLs without a primary key.
See #1674 .
7 years ago
Samir Shah
100edceea1
Remove support for deprecated product alert email templates.
7 years ago
Aliaksei Urbanski
ed8f9f1206
Make OrderPlacementMixin more customizable (#2732)
Pass communication event type code to OrderPlacementMixin.get_message_context()
7 years ago
Samir Shah
a7edc8ba2f
Drop mock in favour of unittest.mock
7 years ago
Samir Shah
e2b8a5b63a
Replace calls to ugettext with gettext.
7 years ago
Samir Shah
13e2ed127c
Remove all uses of six.
7 years ago
Samir Shah
8560a90490
Replace calls to super(ClassName, self) with super().
7 years ago
Samir Shah
ec3791c371
Remove py2-specific imports, tests and code branches.
7 years ago
Samir Shah
e2bed3fd95
Remove u prefix from all Python strings.
7 years ago
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 years ago
Samir Shah
1651bf230f
Upgrade select2 to v4.0, and refactor RemoteSelect widget to work with it.
8 years ago
Samir Shah
86fe75de4d
Remove unnecessary webob dependency from oscar.test utils.
Fixes #2547 .
8 years ago
erickmk
9a14f5e28a
Remove several compatibility helpers for Django < 1.11.
8 years ago
Samir Shah
8a3288da43
Drop support below Django 1.11
8 years ago
yn_coder
2f76e31e08
Mark notification as read only when the detail view is visited. Fixes #2548.
8 years ago
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 years ago
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 years ago
Samir Shah
2c5c428e35
Order items in ProductAlertListView by date created, descending.
8 years ago
Joseph Wayodi
956b5b7853
Add management of attribute options in dashboard (#2448)
8 years ago
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 years ago
Samir Shah
eea76f44c0
PEP8 cleanup, stop allowing PEP8 failures on Travis.
8 years ago
Samir Shah
c7dd981fea
Add some more tests for ProductAlert form validation.
8 years ago
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 years ago
Samir Shah
d351847f6a
Add more tests for product alerts, save alerts sent to registered users, and notes to the docs.
8 years ago
Samir Shah
d415c34ccb
Add documentation and tests for multi_option attribute.
8 years ago
Samir Shah
cefb76f5bb
Replace deprecated assertEquals with assertEqual in tests.
8 years ago
Samir Shah
e690fe3165
Fix logic for determining 'hurry mode' on alerts. Fixes #2100, #2103.
8 years ago
Alexander Gaevsky
a96079eb01
Add test for user search in dashboard when user name contains from more than 2 parts.
9 years ago
Alexander Gaevsky
5de4cfd6cc
Extract cookies from TestApp instance, instead of Client instance. Make sure extracted basket cookie value is unquoted in the tests.
9 years ago
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 years ago
Michael van Tellingen
c26642732b
Remove the oscar.test.decorators module
9 years ago
Alexander Gaevsky
757220ce09
Remove Django Test Client usages in favor of WebTestCase.
9 years ago
Michael van Tellingen
c6db096e80
UnitTest.assertEqual instead of .assertEquals()
Latter one is deprecated
9 years ago
Michael van Tellingen
db33f8f158
Fix Python 3 issue with the Offer reports
A dict_values object was returned instead of a list. See #2223
9 years ago
Michael van Tellingen
1ba28fda59
Fix tests
9 years ago
Michael van Tellingen
aafcc8a901
flake8
9 years ago
Pete Graham
d5d0c4059e
Modify assert technique so test passes
Future tasks is to dig into self.assertRedirectsTo wouldn't work with the test
as it stands
9 years ago
Alexander Gaevsky
6169826571
Show warning message if there is more than one product stock record has same SKU during product range edit in the dashboard.
9 years ago
Alexander Gaevsky
26ab156541
Add test for product attribute update through the product edit page in the dashboard.
9 years ago
Alexander Gaevsky
afc6d6b814
Make sure wish list does not contain given product before moving to it.
9 years ago
Michael van Tellingen
1859d71d94
Create a separate dashboard login/logout
This provides a minimal login template to access the dashboard. This is
especially useful when the shop doesn't provide accounts.
See #1474
9 years ago