15 Commits

Author SHA1 Message Date
Swen Kooij
e14350fbf3 Started work on LocalizedMagicSlugField
This will be a superior version of LocalizedAutoSlugField, but one
that doesn't have concurrency issues and takes advantage of the
new UNIQUE CONSTRAINTs.
2017-02-01 16:59:13 +02:00
Swen Kooij
105c1e7b6b Move LocalizedValue and add get_language_codes 2017-02-01 15:06:36 +02:00
Swen Kooij
680383b636 Added custom back-end to allow uniqueness 2017-01-31 18:04:32 +02:00
Swen Kooij
fc31e1e5f1 Fixed slugs not being generated for unicode texts 2017-01-26 01:18:46 +02:00
Swen Kooij
9d7e3a5655 AutoSlugField should not use LIKE 2017-01-10 15:10:41 +02:00
Swen Kooij
98cc4c08d1 Made tests work once again 2016-12-16 08:50:04 +02:00
Swen Kooij
3adfe509b2 String constructor for LocalizedValue
This allows you to do: LocalizedValue('thing'), which would result in a LocalizedValue looking
like this:

     {'en': 'thing', 'ar': None}
2016-12-16 08:30:56 +02:00
Swen Kooij
9f46dc4ca9 Fixed bug with options not being passed to bleach properly 2016-10-26 17:03:34 +03:00
Swen Kooij
1b94bf2cd8 LocalizedAutoSlugField should not use LocalizedForm 2016-10-24 13:03:40 +03:00
Swen Kooij
c081b0431d Created abstract model to take care of default values 2016-10-24 11:50:21 +03:00
Swen Kooij
69718c376f Added a proper deconstruct method to LocalizedValue 2016-10-23 16:53:31 +03:00
Swen Kooij
666335f3a7 Added a default value for LocalizedField 2016-10-22 21:59:42 +03:00
Swen Kooij
c4a4d0172e Added pep8, flake8 and pylint configuration 2016-10-21 13:05:45 +03:00
Swen Kooij
1cd3812d2a Moved tests to tests/ 2016-10-21 12:57:51 +03:00
Swen Kooij
612b3bf427 Added initial implementation + tests 2016-10-21 12:21:11 +03:00