Commit Graph
100 Commits
Author SHA1 Message Date
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 03df76d6d7.
2017-05-25 17:23:39 +03:00
Swen KooijandGitHub bf2995fd27 Merge pull request #16 from MELScience/deserialization
Ability to deserialize string value
2017-04-14 17:19:17 +03:00
Swen KooijandGitHub 366dceaddc Merge pull request #14 from MELScience/app_registry_not_ready
fixed "Apps aren't loaded yet." exception
2017-04-13 09:35:38 +03:00
Swen Kooij 23c6f975d8 Merge remote-tracking branch 'beer/admin_integration' 2017-04-03 14:56:43 +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
Swen KooijandGitHub bf90131e4f Merge pull request #12 from SectorLabs/experimental
Add experimental features flag for LocalizedField
2017-03-24 15:13:55 +02:00
Swen KooijandGitHub 5df44b0d62 Merge pull request #7 from MELScience/import_error
fixed "Apps aren't loaded yet." exception
2017-03-22 17:48:18 +02:00
Swen KooijandGitHub 5aef1d791b Merge pull request #9 from MELScience/bleach_import
fixed ImportError if django-bleach not installed
2017-03-22 17:45:25 +02:00
Swen Kooij 3951266747 Bump version to 3.5 2017-03-09 14:32:48 +02:00
Swen Kooij b5f4c43d6b LocalizedValue is now cast-able to dict 2017-03-09 14:32:33 +02:00
Swen Kooij 3d08475468 __eq__ should only compare same types
unless it's a string
2017-03-09 11:59:21 +02:00
Swen Kooij b3d7092b91 Bump version to 3.4 2017-02-28 15:00:13 +02:00
Swen Kooij 97a785e9b0 Upgrade django-postgres-extra to 1.4 2017-02-28 14:59:58 +02:00
Swen Kooij 97c14fd2ba Bump version to 3.3 2017-02-24 14:35:57 +02:00
Swen Kooij 6cb4cdf52e Now inheriting from PostgresModel for upserts 2017-02-24 14:35:29 +02:00
Swen Kooij bcb2ff0092 Bump version to 3.2 2017-02-24 12:29:27 +02:00
Swen Kooij 43a48403e9 LocalizedField should not set required twice 2017-02-24 12:28:56 +02:00
Swen Kooij f453c44a73 Bump version to 3.1 2017-02-23 16:54:55 +02:00
Swen Kooij 3cb8b04195 Update REAMDE on back-end changes 2017-02-23 16:54:34 +02:00
Swen Kooij 3f8fc77c4d Remove pylint plugins, Scrutinizer doesn't like it 2017-02-23 16:48:44 +02:00
Swen Kooij 9245c85e5d Scrutinizer should use PostgreSQL 9.6 2017-02-23 16:43:12 +02:00
Swen Kooij 818a0a2fe3 Test requirements should inherit from base.txt 2017-02-23 16:38:43 +02:00
Swen Kooij c206005cae Add django-postgres-extra 1.2 as a dependency 2017-02-23 16:25:27 +02:00
Swen Kooij 3850c34374 Add scrutinizer-ci configuration 2017-02-23 16:24:52 +02:00
Swen Kooij 99c8830f10 Bump version number to 3.0 2017-02-21 17:37:20 +02:00
Swen Kooij d7bd217a90 Ported to use django-postgres-extra 2017-02-21 17:36:56 +02:00
Swen Kooij b9a4d3be2c Bump version number to 2.9.2 2017-02-16 10:20:09 +02:00
Swen Kooij 6d7a937eac Don't regenerate slug if not needed 2017-02-16 10:13:10 +02:00
Swen Kooij 2e9b83e49b Bump version to 2.9.1 2017-02-16 09:36:34 +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 1317023160 Bump version number to 2.8 2017-02-15 19:13:40 +02:00
Swen Kooij ca6b1c88fa Add option include_time to LocalizedUniqueSlugField 2017-02-15 19:13:19 +02:00
Swen Kooij 64c3c06612 Bumped version number to 2.7 2017-02-09 14:57:25 +02:00
Swen Kooij b121dfc2d7 Added __eq__ operator to LocalizedValue 2017-02-09 14:57:08 +02:00
Swen Kooij d529da8886 Fixed bug with with missing populate_from 2017-02-03 11:14:37 +02:00
Swen Kooij ca879087ea Bumped version to 2.6 2017-02-03 10:41:05 +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 759d03133b Bump version number to 2.5 2017-02-02 17:09:15 +02:00
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__ 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 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 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 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
Swen Kooij d16b7066bf Added license badge to README 2016-10-21 14:24:51 +03:00
Swen Kooij 98eaf64cea Show overal branch coverage on Scrutinizer badges 2016-10-21 14:15:10 +03:00
Swen Kooij f9f64db9ca Removed weird category from setup.py 2016-10-21 14:04:18 +03:00
Swen Kooij 356ce00577 Fixed TravisCI configuration 2016-10-21 14:02:56 +03:00
Swen Kooij 667317a7bb Use dj-database-url for configuring db access 2016-10-21 13:58:33 +03:00
Swen Kooij 92952d9f75 Added Scrutinizer/TravisCI badges to README 2016-10-21 13:43:16 +03:00
Swen Kooij f2f8278300 Updated requirements and added TravisCI configuration 2016-10-21 13:38:45 +03:00
Swen Kooij dfe587d03b Better headings in README 2016-10-21 13:32:17 +03:00
Swen Kooij 4d47351b36 Proper inline-code markup in README 2016-10-21 13:21:08 +03:00
Swen Kooij a3ed2deab8 Updated REAMDE with additional fields documentation 2016-10-21 13:16:46 +03:00
Swen Kooij c4a4d0172e Added pep8, flake8 and pylint configuration 2016-10-21 13:05:45 +03:00
Swen Kooij d7c8e3e734 Fixed import syntax in README 2016-10-21 12:58:18 +03:00