David Winterbottom
3e2e509c80
Fix partner user form regression
Caused by reworking of the user creation form.
12 years ago
David Winterbottom
415aa6423b
Convert order dashboar redirect test to use WebTest
12 years ago
David Winterbottom
f87a18ec19
Fix bug in order dashboard CSV download
12 years ago
Izidor Matušov
b7569ca5a2
Making strings translatable
I used the existing script [1] that cooperates very nicely with vim.
1: https://github.com/rory/django-template-i18n-lint
Fixes #676
12 years ago
Izidor Matušov
1d44ae7916
Test new line is removed from the message subject
12 years ago
David Winterbottom
708c4f3026
Rework customer registration view
- Use a FormView (as it is a form view)
- Move the redirect URL validation into the form
12 years ago
David Winterbottom
2ebb8630d9
Fix bug introduced in ccd1635 re product factory
The backported version didn't explicitly create the ProductAttribute
instances before assigning and so they didn't save.
12 years ago
st4lk
e9e1ffeee7
Add 'parent' argument to category_tree template tag
If parent is given, only parent descendant categories will be returned.
Fixes #741
12 years ago
David Winterbottom
f13df6ff65
Reorganise address tests
12 years ago
David Winterbottom
752663dde9
Convert Address name and salutation to properties
12 years ago
Matus Moravcik
a1a6c602f5
Use get_product_class where possible
12 years ago
David Winterbottom
4f3f2756cb
Rework the shipping event testing methods
12 years ago
David Winterbottom
eb74742ec2
Introduce payment event subtotal calculation
12 years ago
David Winterbottom
11930636c7
Rework shipping event validation
12 years ago
David Winterbottom
0f81a0245c
Enhance order dashboard
- Add more links
- Add event details to line detail page
12 years ago
David Winterbottom
441f9ffc1b
Update bankcard model
12 years ago
David Winterbottom
5009eaad6a
Update Bankcard form
12 years ago
David Winterbottom
65e6effd73
Update payment forms (and tests)
Fields now more self-contained, the bankcard form is much simpler.
12 years ago
David Winterbottom
c66a2e0161
Update the bankcard type sniffing function
12 years ago
David Winterbottom
bf49946a30
Rework shipping repository to use a 'methods' attribute
This makes creating simple shipping repositories simpler as you only
need to override the methods attribute.
12 years ago
David Winterbottom
9d65dbb841
Load User model from compatibility layer
12 years ago
David Winterbottom
4337a27505
Fix two testing issues arising in Django 1.5
12 years ago
Maik Hoepfel
8f9d5db31f
Move django-oscar-testsupport into oscar.test
This allows updating code in both places, if necessary. Getting Django
1.5 support would be painful otherwise. This also removes the circular
dependency of django-oscar-testsupport on Oscar.
The requirements were merged. The imports were updated
accordingly. Unused imports in the touched files were removed. No
further changes.
12 years ago
Maik Hoepfel
1bc23cdbec
Update testing for Django 1.5
* Emailbackend: Updated to use REQUIRED_FIELDS
* Demo and sandbox site now use compat.AUTH_USER_MODEL as well
* Added example custom user that gets tested for Django >= 1.5
12 years ago
chenull
4289f882b5
Support Django's 1.5 AUTH_USER_MODEL feature
13 years ago
David Winterbottom
354a0831fe
Rework validation that local URLs don't already exist
This is required to allow the pages component of the dashboard to
continue to work correctly.
13 years ago
David Winterbottom
1b5adc86d1
Add integration test for ExtendedURLField
13 years ago
David Winterbottom
0aed77500a
Rework ExtendedURLValidator and tests
* Tidy implementation of validator
* Tests improved and moved to tests/integration (as they call resolve
internally)
13 years ago
David Winterbottom
e5310f1147
Adjust test generator to make tests pass
12 years ago
David Winterbottom
686fbfeb68
Introduce new widgets that pick up locale date formats
12 years ago
David Winterbottom
fa000fe49b
Fix functional tests for checkout
Change to required address fields was causing the shipping address step
to fail.
12 years ago
Maik Hoepfel
b51aa59ef5
AddToBasketForm now handles options properly
When adding to the basket, products with options were treated as
different products for each combination of options. This allowed adding
more products into the basket than are available for purchase.
The handling has been updated to sum up the already added quantity of
the product regardless of options.
Fixes #665
12 years ago
David Winterbottom
03676aedf7
Use nose test generators instead of @dataProviders
12 years ago
David Winterbottom
b17b9b75df
Move assert function to module level for generator tests
This is required for multiprocess testing to work (eg ./runtests.py
--processes=2)
12 years ago
David Winterbottom
f9799d5029
Reorganise payment tests
12 years ago
Matus Moravcik
23a7f2185a
Add variant to parent product redirect on detail page. Fixes #695
12 years ago
Maik Hoepfel
7b809d3a5f
get_classes now allows top-level apps.
Fixes #614
12 years ago
David Winterbottom
94e9de23c8
Fix fixtures for import tests
12 years ago
David Winterbottom
fe0a37a780
Add compose function for combining decorators
12 years ago
David Winterbottom
51e188f37b
Reclassify order tests as integration tests
As they save stuff...
12 years ago
David Winterbottom
9157a54438
Don't allocate stock for product classes with track_stock=False
We now check in the OrderCreator for this attribute and only allocate if
it is true.
Fixes #671
12 years ago
David Winterbottom
94b30023bf
Ensure value exists in clean method for AbsoluteDiscount benefits
Without a value, applying an AbsoluteBenefit raises a TypeError.
Fixes #670
12 years ago
Skirmantas Jurgaitis
c06899c318
Include 'back to search results' link on product detail page
This change introduces a templatetag which assigns context for adding a
'back to search results' link to a product detail page. This can be
useful for certain types of user (who don't use the back button) and
want to get back to their, possibly complicated, set of search filters.
Fixes #456
13 years ago
David Winterbottom
220687be5a
Extend email auth backend to handle duplicate emails
The auth backend now gracefully handles situations where there are users
with the same email address.
12 years ago
David Winterbottom
80384a4007
Fix logic error in product availability
Introduced in 7fd62f2af0 .
13 years ago
David Winterbottom
02b3644e3c
Fix validation error in dashboard voucher form
The clean method was raising a KeyError when the date fields were empty.
13 years ago
Skirmantas Jurgaitis
739dd1c9d2
Fixed github issue #624: UnicodeDecodeError when exporting orders as CSV
13 years ago
Maik Hoepfel
fec0bcf588
Tests: Check new password works after changing it.
The profile test can_change_password checked if the password change
form can be submitted succesfully, but did not verify that Django's
authentication system accepts the new password.
13 years ago
Maik Hoepfel
6ebcee5780
Fix bug preventing product update
Product updates in the dashboard weren't being saved. This was a
regression introduced by my refactoring of the ProductUpdate/Create
views.
A test to ensure that a product title does indeed get updated has been
added.
Reported and fix supplied by @soloweb in #613 . Thank you.
13 years ago
Maik Hoepfel
6d5cedc862
Add setting to make address fields required
OSCAR_REQUIRED_ADDRESS_FIELDS allows setting which fields are required.
The use case is that post codes are expected to be required, but many
countries don't actually use them.
13 years ago