Paul J Stevens
fa124a8a21
[issue2773] add test for negative line value
6 years ago
Alexander Gaevsky
3924b4b2b2
Extract promotions application out of the Oscar core.
7 years ago
Alexander Gaevsky
f959e9213f
Update test in case if home page has redirection.
8 years ago
Roel Bruggink
a5096da38a
Add is_public field to Product model (#2935)
7 years ago
Highbiza migration experts
43c5db8fbc
Added method to Product manager for filtering on product attributes. (#2888)
7 years ago
Paul J Stevens
ff9afb6011
remove end_datetime from conditionaloffer fixture
7 years ago
Alexander Gaevsky
d25c3f8bfc
Add tests for dashboard stats aggregation for non-staff users.
7 years ago
Aliaksei Urbanski
dc435b4d79
Add the TestDashboardIndexForPartnerUser test case
Update the TestDashboardIndexForAnonUser test case
7 years ago
Aliaksei Urbanski
d2b21f29ff
Limit access to dashboard for partners to show only their stats
7 years ago
Highbiza migration experts
4fa6709b9a
Improve efficiency of category_tree template tag. (#2895)
7 years ago
dfirst
3698773459
Allow searching for partial email addresses in dashboard user search form
7 years ago
dfirst
1081d73c1a
Fix normalise_email to handle email addresses with multiple @ symbols
7 years ago
Craig Loftus
25a6baa1eb
Properly populate user instance passed to password validators
7 years ago
ayub-khan
cceba2912a
issue-id=2843
Add functionality to check if a voucher is
available for a basket or not.
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
Victor Munene
e78a9ebbe0
Change OSCAR_OFFER_ROUNDING_FUNCTION to require a dotted path to the rounding function (#2812)
7 years ago
dfirst
3c5f402c3d
Fix flake8 warnings introduced in flake8 3.6.0
7 years ago
dfirst
f42e5d1d30
Added ability to manage Catalogue.Option from the dashboard
7 years ago
Samir Shah
72f52acff7
Update inputmask to version 4.0.2 (#2852)
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
Lars van de Kerkhof
0baf2f2455
Added setting for calculating offer discounts over the price including tax.
7 years ago
Srdjan Cosic
542f9d1cd0
Add test receiver creates order status change object
7 years ago
SrdjanCosicPrica
82e605c841
Fix form errors when going back to first step in dashboard OfferWizard (#2819)
7 years ago
Diederik van der Boor
da4f0e4dc4
Fix Range.all_products() inconsistency with contains_product()
This change fixes the inconsistency with range.all_products() which
didn't check for exclusions when includes_all_products is set
Every other bit of oscar expected range.includes_all_products means
that all products are included, no questions asked. The dashboard
interface even hides the option to edit/remove individual products.
The short circuiting in ConditionalOffer.products() is removed so
the range.all_products() logic is applied consistently.
7 years ago
Alexander Gaevsky
7244e7b4cd
Update tests.
8 years ago
Alexander Gaevsky
2929ce16a2
Allow to specify database user and password in tests configuration.
7 years ago
PlayDay
dd9cbe6cb0
(UPDATE) add timedelta formatter, pretify basket.time_since_creation report value
7 years ago
Samir Shah
66cbeab8cf
Deprecate ProductManager and BrowsableProductManager.
7 years ago
dfirst
79eb14e93b
Improve validation logic of reviews sort order form
Fixes #2579 .
7 years ago
Basil Dubyk
14c7fdb367
Improve charge computation in `WeightBased` shipping method
When `remaining_weight` is "0" (zero) we should not get band for it.
7 years ago
Lars van de Kerkhof
3ee0fd713c
Added unittest for StockRecordForm
7 years ago
Philip Kazmeier
57e71b8fda
Fix input validation for BenefitForm in dashboard.offers (#2762)
7 years ago
Samir Shah
3672aba818
Drop backward compatibility for dynamic loading of moved formset classes.
7 years ago
Samir Shah
349ae18be2
Reduce maximum line length in flake8 config to 119 characters.
7 years ago
Samir Shah
990a1eb37c
Add compatibility for Django 2.1, and drop support for Python 3.4.
Django 2.1 works fine - the only issue was that more passwords
have been added to the CommonPasswordValidator which caused some tests
to fail. I've removed that validator from the test settings.
7 years ago
Samir Shah
426cb902d3
Remove various deprecated utilities, methods and classes.
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
Craig Loftus
eba482ed44
Drop unidecode and replace with cautious_slugify from Wagtail
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
4878b2a165
Fix kwarg handling in dashboard voucher set detail view.
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
095c30d735
Remove use of python_2_unicode_compatible decorator.
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
721fa6475f
Fix validation of required phone_number field in PhoneNumberMixin.
If a phone_number field is required, and empty, then PhoneNumberMixin.clean() fails with a key error because the field does not exist in cleaned_data.
This patch fixes the clean() method to only attempt to clean a field if it exists in cleaned_data. If it doesn't then allow Django to raise a validation error for a missing required field.
Also added more comprehensive tests for the validation logic in the mixin.
7 years ago