424 Commits

Author SHA1 Message Date
Swen Kooij
d5ed3ced40 Raise IntegrityError if it's not about the slug 2017-02-02 17:08:06 +02:00
Swen Kooij
d740d442b2 Added missing test for LocalizedValue __init__ 2.4 2017-02-02 15:04:01 +02:00
Swen Kooij
9a976d5ec8 Added max retries option + tests 2017-02-02 15:01:40 +02:00
Swen Kooij
1ef02616ec Added tests for custom db-backend 2017-02-02 14:36:22 +02:00
Swen Kooij
5ba9be4aeb Add FAQ to the README 2017-02-02 11:20:01 +02:00
Swen Kooij
25d0e98eaa Fix ReText syntax error in README 2017-02-02 11:02:37 +02:00
Swen Kooij
d067660e7f Added documentation on LocalizedMagicSlugField 2017-02-02 11:00:31 +02:00
Swen Kooij
a48eb12370 Add a new auto-slug field that is concurrency resistent 2017-02-02 10:58:04 +02:00
Swen Kooij
1adcd5a399 Ignore stupid .DS_Store files 2017-02-02 10:56:56 +02:00
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
ed1559ec31 HStoreIndex, unique indexes on hstore keys 2017-01-30 16:22:44 +02:00
Swen Kooij
c38df2589e Ignore build result 2017-01-30 11:42:24 +02:00
Swen Kooij
4511c3b195 Bumped version number to 2.3 2017-01-26 01:19:37 +02:00
Swen Kooij
fc31e1e5f1 Fixed slugs not being generated for unicode texts 2017-01-26 01:18:46 +02:00
Swen Kooij
c01edc80f0 Bumped the version number to 2.2 2017-01-12 16:58:18 +02:00
Swen Kooij
81c21d8d8f Merge branch 'master' of https://github.com/SectorLabs/django-localized-fields 2017-01-12 16:57:37 +02:00
Swen Kooij
d507cbfe75 Merge pull request #2 from SectorLabs/localized_model_inited_with_dicts
Allow localized fields to be inited with dicts
2017-01-12 16:56:34 +02:00
Emil Luta
03e8a7383f Added test for dict init on LocalizedModel 2017-01-12 16:35:07 +02:00
Emil Luta
5f5568d380 Allow localized fields to be inited with dicts 2017-01-12 15:49:59 +02:00
Swen Kooij
b0a81f6657 Bumped version number to setup.py 2017-01-10 15:11:25 +02:00
Swen Kooij
9d7e3a5655 AutoSlugField should not use LIKE 2017-01-10 15:10:41 +02:00
Swen Kooij
ccaacd9026 Bumped version to 2.0 - breaking change
This new version changes the behavior of .get() on LocalizedValue.
Before: .get() without arguments would get the currently active language
After : .get() without arguments will get the primary language
2016-12-16 08:52:25 +02:00
Swen Kooij
6c17eec48f Updated documentation regarding .get() 2016-12-16 08:50:42 +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
2c5090f7a9 Bumped version to 1.8 2016-12-08 16:46:40 +02:00
Swen Kooij
39a573e1d2 Use Textarea widget for LocalizedFieldWidget 2016-12-08 16:45:40 +02:00
Swen Kooij
7d5f39d147 Bumped version to 1.7 2016-10-26 17:04:10 +03:00
Swen Kooij
9f46dc4ca9 Fixed bug with options not being passed to bleach properly 2016-10-26 17:03:34 +03:00
Swen Kooij
6d9ee5df8d Export all classes from localized_fields 2016-10-24 13:34:49 +03:00
Swen Kooij
1b94bf2cd8 LocalizedAutoSlugField should not use LocalizedForm 2016-10-24 13:03:40 +03:00
Swen Kooij
20d9e68c06 Bumped coverage to 100% 2016-10-24 12:35:23 +03:00
Swen Kooij
c081b0431d Created abstract model to take care of default values 2016-10-24 11:50:21 +03:00
Swen Kooij
cdaacdfac5 Bumped version number to 1.3 2016-10-23 16:54:20 +03:00
Swen Kooij
69718c376f Added a proper deconstruct method to LocalizedValue 2016-10-23 16:53:31 +03:00
Swen Kooij
7e410e857b Fixed a bug that would make creation forms crash 2016-10-23 16:44:33 +03:00
Swen Kooij
dbcfcd1503 Bumped version to 1.2 2016-10-22 22:20:51 +03:00
Swen Kooij
0eab0099b5 Fixed Restructed Text error in README 2016-10-22 22:20:41 +03:00
Swen Kooij
cb32bab127 Fixed typo in README (LANGUAGEs -> LANGUAGES) 2016-10-22 22:15:27 +03:00
Swen Kooij
14f8f739dc Fixed formatting in the Installation section of the README 2016-10-22 22:14:51 +03:00
Swen Kooij
5d20ebbc07 Detailed README on setup and usage 2016-10-22 22:12:53 +03:00
Swen Kooij
666335f3a7 Added a default value for LocalizedField 2016-10-22 21:59:42 +03:00
Swen Kooij
15bad7b18a Added information about Python 3.5 and Django 1.10 in the README 2016-10-22 21:38:01 +03:00
Swen Kooij
e74d217450 Added PyPi badge to README 2016-10-21 15:22:41 +03:00
Swen Kooij
2be158ba5f Fixed repo url in setup.py 2016-10-21 15:09:39 +03:00
Swen Kooij
65d6647b6a Moved Installation to the top in README.rst 2016-10-21 14:38:39 +03:00
Swen Kooij
036153f3af Fixed ResT errors in README.rst 2016-10-21 14:33:00 +03:00
Swen Kooij
749115d326 Prepared setup.py for PyPi upload 2016-10-21 14:27:40 +03:00