Samir Shah
3f67ce9b76
Apply isort fixes on the whole project.
il y a 6 ans
Michael van Tellingen
be8a2795c7
Rename test file to match module tested.
As in `test_model.py` -> `test_models.py`
il y a 9 ans
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.
il y a 9 ans
Michael van Tellingen
aafcc8a901
flake8
il y a 9 ans
Michael van Tellingen
8c32aaf3d9
Replace last occurences of django-dynamic-fixture with factory-boy
il y a 10 ans
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
il y a 12 ans
David Winterbottom
a9f7622e1b
Fix Django 1.5 tests caused by using wrong User model
il y a 12 ans
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.
il y a 12 ans