Samir Shah
3f67ce9b76
Apply isort fixes on the whole project.
6 gadus atpakaļ
Michael van Tellingen
be8a2795c7
Rename test file to match module tested.
As in `test_model.py` -> `test_models.py`
8 gadus atpakaļ
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.
8 gadus atpakaļ
Michael van Tellingen
aafcc8a901
flake8
8 gadus atpakaļ
Michael van Tellingen
8c32aaf3d9
Replace last occurences of django-dynamic-fixture with factory-boy
10 gadus atpakaļ
Izidor Matušov
019598deab
Validate postcodes based on the country
Validation is based on wikipedia list of postal codes [1]. Formats were
converted into regexes for countries.
1: http://en.wikipedia.org/wiki/List_of_postal_codes
Fixes #753
12 gadus atpakaļ
David Winterbottom
a9f7622e1b
Fix Django 1.5 tests caused by using wrong User model
12 gadus atpakaļ
David Winterbottom
e462f04fd2
Ensure user addresses are unique per user
This change adds a uniqueness constraint on user addresses to prevent
duplicates. A few changes follow:
- The user address forms in account and checkout are modified to take a
user as a constructor arg so uniqueness can be checked.
- The assignment of a user when creating a new address has been moved
into the form.
12 gadus atpakaļ