Swen Kooij
def7dae640
Add LocalizedValue.translate()
...
LocalizedValue.translate() behaves the exact same as the str(..) cast
works, with the exception that it returns None if there is no value
instead of an empty string. This makes it easier to implement custom
value classes on top of the LocalizedValue class.
Behavior for str(..) stays the same as it was.
2018-06-14 07:57:02 +03:00
Swen Kooij
db4324fbf3
Bump version number to 4.6a3
2018-04-02 15:59:42 +03:00
Swen Kooij
9ff0b781ab
Upgrade django-postgres-extra to 1.21a9
2018-04-02 15:59:27 +03:00
Swen Kooij
a76101c9ad
Fix LocalizedFieldsAdminMixin not having a base class
...
This was a breaking change and broke a lot of projects.
2018-04-02 15:59:16 +03:00
Swen Kooij
04f15363bb
Upgrade django-postgres-extra to 1.21a8
2018-04-01 18:28:43 +03:00
Swen Kooij
a849866bcb
Make it more clear Django 2.X is supported
2018-03-31 17:05:39 +03:00
Swen Kooij
5e58bc6e24
Revert "Use standard postgres on Scrutinizer"
...
This reverts commit 04a750053f .
2018-03-31 16:59:11 +03:00
Swen Kooij
04a750053f
Use standard postgres on Scrutinizer
2018-03-31 16:56:01 +03:00
Swen Kooij
d25b1b92fe
Merge branch 'master' of https://github.com/SectorLabs/django-localized-fields
2018-03-31 16:53:48 +03:00
Swen Kooij
ccc46e1899
Allow raw dicts to be used in update statements
2018-03-31 16:53:10 +03:00
Swen Kooij and GitHub
9063509817
Merge pull request #47 from MELScience/fix-admin-widget-inline-tabs
...
fix admin widget tabs width in inline formset
2018-03-31 16:47:36 +03:00
Swen Kooij
8fbe3e8680
Merge branch 'master' of https://github.com/SectorLabs/django-localized-fields
2018-03-31 16:42:08 +03:00
Swen Kooij
b9f14322be
Bump version to 4.6a2
2018-03-31 16:40:50 +03:00
Swen Kooij
24974b2f6b
Upgrade django-postgres-extra to 1.21a7
2018-03-31 16:40:29 +03:00
Swen Kooij
af02593ebd
Add test to make sure LocalizedValue doesn't cast values to string
2018-03-31 08:52:12 +03:00
Swen Kooij and GitHub
77f626fc69
Merge pull request #46 from MELScience/fix-admin-widget-inline
...
fix admin widget work with inline formsets
2018-02-20 09:14:40 +02:00
Swen Kooij and GitHub
09cd0a8177
Merge pull request #44 from si14/patch-4
...
fix LocalizedValue.deconstruct (wrong module name)
2018-02-04 18:00:48 +02:00
Swen Kooij and GitHub
b27f1535ee
Merge pull request #43 from SectorLabs/fix-test-on-django20
...
Fix test on django20
2018-01-29 13:39:09 +02:00
Swen Kooij
cd844fccec
Add support for tox to run tests against Django 1.X/2.0
2018-01-29 13:34:40 +02:00
Swen Kooij
bf0383d742
Upgrade to alpha version of django-postgres-extra (1.21a4)
2018-01-29 12:37:44 +02:00
Swen Kooij and GitHub
879b857aa5
Merge pull request #41 from MELScience/update-requirements
...
update requirements
2018-01-24 23:53:02 +02:00
Swen Kooij and GitHub
11cfe5b6e1
Add unaizalakain to the contributor list
2017-07-18 15:47:07 +03:00
Swen Kooij and GitHub
084f5dd0b6
Merge pull request #36 from MELScience/issue35
...
Fix non-valid HTML tags attributes
2017-07-18 14:37:11 +03:00
Swen Kooij and GitHub
83605cde13
Merge pull request #37 from MELScience/gitignore
...
Gitignore
2017-07-18 14:36:46 +03:00
Swen Kooij
f434566338
Bump version number to 4.5
2017-07-18 09:40:55 +03:00
Swen Kooij
2807ed10c8
Add target link for the license Badge
2017-07-18 09:40:29 +03:00
Swen Kooij and GitHub
d5f43c783a
Merge pull request #34 from MELScience/widget_refactor
...
Use template-based widget rendering in AdminLocalizedFieldWidget
2017-07-18 09:39:00 +03:00
Swen Kooij and GitHub
5347db6d8f
Add contributors list to README
2017-07-18 09:38:51 +03:00
Swen Kooij and GitHub
1accee0b59
Merge branch 'master' into widget_refactor
2017-07-18 09:33:59 +03:00
Swen Kooij and GitHub
05bcd84a88
Merge pull request #29 from MELScience/required
...
Improved functionality of required parameter
2017-07-18 09:33:24 +03:00
Swen Kooij
1c2e013695
Add Django 1.11 as a dependency to setup.py
...
Fixes #32
2017-07-18 09:31:47 +03:00
Swen Kooij and GitHub
8b76948328
Merge pull request #33 from MELScience/issue32
...
Django requirement updated
2017-07-18 09:29:09 +03:00
Swen Kooij
7d629c186d
Add basic tests for 'required' attribute
2017-07-16 12:22:48 +03:00
Swen Kooij
cff388cae3
Add PEP8 and Flake8 as part of Scrutinizer test
2017-07-15 14:13:51 +03:00
Swen Kooij
08690ab361
Fix outstanding PEP8 and Flake8 issues
2017-07-15 14:06:50 +03:00
Swen Kooij
5ac05efbd0
Slight clean up, use dict instead of {}
2017-07-15 14:04:09 +03:00
Swen Kooij
aff41f671a
Implement code review suggestions for #29
2017-07-15 13:59:39 +03:00
Swen Kooij and GitHub
a38d53b609
Merge pull request #30 from SectorLabs/subwidgets-labels
...
Subwidgets labels
2017-07-15 13:56:29 +03:00
Swen Kooij
968840188d
Formatting cleanup in widgets.py
2017-07-15 13:48:54 +03:00
Swen Kooij and GitHub
d4c24dea97
Merge pull request #28 from MELScience/fix_imports_in_doc
...
fix imports in README
2017-07-11 11:21:57 +03:00
Swen Kooij and GitHub
226d47e766
Merge pull request #27 from MELScience/issue26
...
Fix incorrect indentation
2017-07-11 10:40:48 +03:00
Swen Kooij
d14859a45b
Bump version number to 4.4
2017-06-29 18:56:33 +03:00
Swen Kooij
cb7fda5abc
Merge branch 'master' of https://github.com/SectorLabs/django-localized-fields
2017-06-29 18:52:23 +03:00
Swen Kooij
9000635f1f
Open README as UTF-8
2017-06-29 18:51:53 +03:00
Swen Kooij and GitHub
dabeb3b79f
Merge pull request #24 from MELScience/ff_value_to_string
...
Added `value_to_string` method
2017-06-27 10:49:17 +03:00
Swen Kooij
32696f4e1e
Add test that confirms slug is re-computed when value changes
2017-06-26 14:01:25 +03:00
Swen Kooij
3ce57ed4cc
Bump version number to 4.3
2017-06-26 13:37:02 +03:00
Swen Kooij
7316d312b4
Add simple test for LOCALIZED_FIELDS_FALLBACKS setting
2017-06-26 13:36:21 +03:00
Swen Kooij
16e23963cc
Add support for LOCALIZED_FIELDS_FALLBACKS
2017-06-26 13:27:52 +03:00
Swen Kooij
b10472d3e9
Officially deprecate LocalizedAutoSlugField
2017-06-26 13:10:21 +03:00
Swen Kooij and GitHub
833ceb849c
Update docs on enhanced LocalizedUniqueSlugField
2017-06-26 13:07:18 +03:00
Swen Kooij
d7382fbf30
Add support for using a callable to populate slug with
2017-06-26 13:03:41 +03:00
Swen Kooij
8ad9268426
Remove tests for LocalizedAutoSlug
2017-06-26 12:52:42 +03:00
Swen Kooij
96ddc77cfc
Fake models now have generated names
2017-06-26 12:44:09 +03:00
Swen Kooij
51fc6959d2
Support for slugging from multiple fields
2017-06-26 12:34:50 +03:00
Swen Kooij
3b28a5e707
Fix PEP8 violations
2017-06-26 11:33:25 +03:00
Swen Kooij and GitHub
06873afbda
Merge pull request #15 from MELScience/extra-fields
...
Extra fields
2017-06-21 11:33:30 +03:00
Swen Kooij
f7c14f897c
Bump version number to 4.2
2017-06-20 18:04:44 +03:00
Swen Kooij and GitHub
e5e3068835
Merge pull request #22 from MELScience/issue17
...
Added templates and static folders
2017-06-20 18:03:11 +03:00
Swen Kooij
c75c1764e2
Improve test case for bulk_create
2017-05-31 11:38:53 +03:00
Swen Kooij
6736b3b32d
Simplify test case for bulk_create
2017-05-31 11:33:20 +03:00
Swen Kooij
b97a7f3c23
Fix crash when using LocalizedUniqueSlugField in a bulk_create
2017-05-31 11:31:04 +03:00
Swen Kooij
1b036dc1de
Add simple test to verify LocalizedField can be used in bulk_create
2017-05-31 11:19:53 +03:00
Swen Kooij
ea7733670d
Bump version to 4.1
2017-05-30 16:38:08 +03:00
Swen Kooij
a8dc4fe837
Fix bug/typo in LocalizedField.from_db_value
2017-05-30 13:48:43 +03:00
Swen Kooij
3c8bea0fc3
Add test for LocalizedRef in combination with ArrayAgg
2017-05-30 13:47:48 +03:00
Swen Kooij
2741a6a2a2
Add extra tests for LocalizedRef
2017-05-30 13:45:43 +03:00
Swen Kooij
06f7ee15f0
Add LocalizedRef expression for extracting the value in the current language
2017-05-30 13:38:27 +03:00
Swen Kooij
e5214b07ae
Fix aggregation not expanding into a actual list
2017-05-30 13:07:07 +03:00
Swen Kooij
2d5fe0be05
Fix documentation on INSTALLED_APPS
2017-05-26 17:38:49 +03:00
Swen Kooij
4305696f1b
Fix pep8 issue, use two spaces before inline comment
2017-05-26 17:05:52 +03:00
Swen Kooij
8c73c9ab77
Fix some mistakes in the README
2017-05-26 17:05:05 +03:00
Swen Kooij
92a53bc3d7
Fix various pep8/flake8/pylint errors
2017-05-25 19:40:03 +03:00
Swen Kooij
5a4f449363
Fix support for ArrayAgg
2017-05-25 19:23:52 +03:00
Swen Kooij
0fa79ddbb0
Bump version to 4.0
2017-05-25 19:16:35 +03:00
Swen Kooij
2205f9c6a4
Move LocalizedValueTest into dedicated file
2017-05-25 19:16:04 +03:00
Swen Kooij
84c267330f
Update docs on new import style
2017-05-25 19:11:39 +03:00
Swen Kooij
a1a02552b7
Shorten names for everything
2017-05-25 19:06:44 +03:00
Swen Kooij
bb84d7577c
BREAKING CHANGE: Empty out __init__
...
It is bad practice to do this in Django. If somebody imports something
from the package before Django is loaded, you get a 'Apps aren't loaded yet.'
exception.
2017-05-25 18:51:11 +03:00
Swen Kooij
5e0343801f
Restore LocalizedModel to its former glory as an convient way to get all the mixins
2017-05-25 18:50:20 +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 03df76d6d7 .
2017-05-25 17:23:39 +03:00
Swen Kooij and GitHub
bf2995fd27
Merge pull request #16 from MELScience/deserialization
...
Ability to deserialize string value
2017-04-14 17:19:17 +03:00
Swen Kooij and GitHub
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 Kooij and GitHub
bf90131e4f
Merge pull request #12 from SectorLabs/experimental
...
Add experimental features flag for LocalizedField
2017-03-24 15:13:55 +02:00
Swen Kooij and GitHub
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 Kooij and GitHub
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