Swen Kooij
92a53bc3d7
Fix various pep8/flake8/pylint errors
2017-05-25 19:40:03 +03:00
Swen Kooij
a1a02552b7
Shorten names for everything
2017-05-25 19:06:44 +03:00
Swen Kooij
2df2ec8b36
Move LocalizedValueDescriptor into its own file
2017-05-25 18:45:21 +03:00
Swen Kooij
3fcaece894
Add missing docs to LocalizedField.contribute_to_class
2017-05-25 18:14:41 +03:00
Swen Kooij
093a9d58f2
Fix to_python not working with non-json values
2017-05-25 18:11:58 +03:00
Swen Kooij
cff22855c2
Revert "LocalizedUniqueSlugField refactored"
...
This reverts commit 03df76d6d795f4453629bf526cc04a86c6393adc.
2017-05-25 17:23:39 +03:00
seroy
f1798b0cc6
added ability to deserialize string value
2017-04-13 11:53:56 +03:00
Swen Kooij
a9037b603a
Merge remote-tracking branch 'beer/uniqueslug'
...
# Conflicts:
# README.rst
# tests/fake_model.py
2017-04-03 14:54:25 +03:00
Swen Kooij
8b08e5a467
Merge remote-tracking branch 'beer/model_inheritance_free'
...
# Conflicts:
# localized_fields/fields/localized_field.py
# localized_fields/models.py
# tests/fake_model.py
2017-04-03 14:49:27 +03:00
seroy
78594541e1
fixed for new instance don't call refresh_from_db
2017-03-23 20:49:39 +03:00
Bogdan Hopulele
52145ca7d3
Add experimental features flag for LocalizedField
...
With the flag set, LocalizedField will return None if there is no
database value.
2017-03-23 17:32:37 +02:00
seroy
03df76d6d7
LocalizedUniqueSlugField refactored
2017-03-18 22:58:11 +03:00
seroy
465e35ba8a
fixed ImportError if django-bleach not installed
2017-03-18 19:04:51 +03:00
seroy
340dde18cd
no need inheritance from LocalizedModel anymore. Introduction of LocalizedValueDescriptor
2017-03-13 00:50:34 +03:00
Swen Kooij
6cb4cdf52e
Now inheriting from PostgresModel for upserts
2017-02-24 14:35:29 +02:00
Swen Kooij
43a48403e9
LocalizedField should not set required twice
2017-02-24 12:28:56 +02:00
Swen Kooij
d7bd217a90
Ported to use django-postgres-extra
2017-02-21 17:36:56 +02:00
Swen Kooij
6d7a937eac
Don't regenerate slug if not needed
2017-02-16 10:13:10 +02:00
Swen Kooij
679dcafef6
Pop kwargs after calling super constructor
2017-02-16 09:36:26 +02:00
Swen Kooij
ad2ef34546
Bump version number to 2.9
2017-02-15 19:29:29 +02:00
Swen Kooij
ca6b1c88fa
Add option include_time to LocalizedUniqueSlugField
2017-02-15 19:13:19 +02:00
Swen Kooij
d529da8886
Fixed bug with with missing populate_from
2017-02-03 11:14:37 +02:00
Swen Kooij
302a64a02c
Updated base classes in documentation
2017-02-03 10:40:37 +02:00
Swen Kooij
bb11253207
Moved retry mechanism to mixin
2017-02-03 10:35:39 +02:00
Swen Kooij
5db87763fb
Rename LocalizedMagicSlugField to LocalizedUniqueSlugField
2017-02-03 10:27:30 +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
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