Maik Hoepfel
8199da2100
Test and handle text representations of models
This commit adds the python_2_unicode_compatible decorator to all models
that define a text representation. Furthermore, it adds a test to ensure
that we never forget to do that.
It is explained in details in the Django docs:
https://docs.djangoproject.com/en/dev/topics/python3/#str-and-unicode-methods
11 лет назад
Maik Hoepfel
c5f8caaa00
Add more missing app_labels
I don't know how I missed them. I think I must've made a mistake while
heavily rebasing this branch; it's the second time I'm surprised to not
find certain changes I'm confident I did.
11 лет назад
Maik Hoepfel
91dac06cdc
Always use ugettext_lazy for model definitions
As discovered in #1003 , some fields of ModelForms were not translated.
The issue is that we've used ugettext instead of ugettext_lazy. The
former will be translated whenever model definitions are loaded, whereas
the latter will translate at the last possible moment. Only then do we
know of the appropriate language to use. Hence, we must use
ugettext_lazy for all model defintions.
12 лет назад
Sebastian Vetter
36e30f0ccf
Fix verbose names in analytics app
12 лет назад
chenull
4289f882b5
Support Django's 1.5 AUTH_USER_MODEL feature
13 лет назад
Davi Vidal
251789b204
Typo
13 лет назад
Sebastian Vetter
99c0c87369
Merged pull request #507 from informa/feature/product_update
13 лет назад
David Winterbottom
60c2c6cbb6
PEP8 fixes
13 лет назад
Janusz Harkot
cb9ff7e52e
missing translations, remove unicode from translation strings
13 лет назад
David Winterbottom
b217f46d31
i18n for dashboard
13 лет назад
David Winterbottom
e7db57e7bc
Minor tweaks to i18n changes
13 лет назад
David Winterbottom
accc4ac755
Merged jerzyk's i18n branch.
13 лет назад
David Winterbottom
5b7b990b20
MASSIVE commit as the word 'item' is phased out in favour of 'product' to make things more consistent. Also, renamed product app to catalogue
14 лет назад
David Winterbottom
32d100d5ee
Added score calculation and automatic promotion sorting by score
14 лет назад
Andrew Ingram
94e2a3fff6
fixed some indentation errors
14 лет назад
David Winterbottom
d8494beaca
Tided up address, analytics, basket apps
15 лет назад
David Winterbottom
887d605757
Refactored folder structure to use an 'apps' folder
15 лет назад
David Winterbottom
46516903b2
Added product score field to product analytics record
15 лет назад
David Winterbottom
19aa4bcdee
Updated analytics package to track user searches and product views
15 лет назад
David Winterbottom
8215cec3d0
Added analytics module.
Analytics allows tracking of user and product activity.
15 лет назад