Swen Kooij
bca94a3508
Add quick docs on LocalizedIntegerField
2018-06-15 13:04:00 +03:00
Swen Kooij
8c83fa6b49
Bump version number to 5.0a1
2018-06-15 12:58:27 +03:00
Swen Kooij
90597da8fd
Add a LocalizedIntegerField
2018-06-15 12:58:01 +03:00
Swen Kooij
752e17064d
Deprecate LocalizedFileValue.localized()
2018-06-14 08:01:10 +03:00
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
v4.6a2
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 04a750053f0aea3a9b947d67f9fdc1892cdfc90a.
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
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
seroy
f161b5d047
fix admin widget tabs width in inline formset
2018-03-01 13:22:54 +03:00
Swen Kooij
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
seroy
d7889b0601
use label tag + for attribute instead of a + href for properly work with inline formsets
2018-02-20 00:58:08 +03:00
Swen Kooij
09cd0a8177
Merge pull request #44 from si14/patch-4
...
fix LocalizedValue.deconstruct (wrong module name)
2018-02-04 18:00:48 +02:00
Dmitry Groshev
2a29efdf14
fix LocalizedValue.deconstruct (wrong module name)
2018-01-31 23:59:48 +00:00
Dmitry Groshev
d8eb3394d0
LocalizedFieldsAdminMixin can be used with inlines
...
LocalizedFieldsAdminMixin was inheriting from ModelAdmin. This means in a code like this
```python
class FooInline(LocalizedFieldsAdminMixin, admin.TabularMixin):
pass
```
`__init__` was being resolved to `ModelAdmin.__init__` which is clearly wrong.
2018-01-29 13:39:47 +02:00
Swen Kooij
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
seroy
6a4beca193
fix tests on Django 2.0
2018-01-29 13:30:43 +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
879b857aa5
Merge pull request #41 from MELScience/update-requirements
...
update requirements
2018-01-24 23:53:02 +02:00
seroy
59e8e18b2a
update requirements
2018-01-22 01:19:23 +03:00
Swen Kooij
11cfe5b6e1
Add unaizalakain to the contributor list
2017-07-18 15:47:07 +03:00
Swen Kooij
084f5dd0b6
Merge pull request #36 from MELScience/issue35
...
Fix non-valid HTML tags attributes
2017-07-18 14:37:11 +03:00
Swen Kooij
83605cde13
Merge pull request #37 from MELScience/gitignore
...
Gitignore
2017-07-18 14:36:46 +03:00
seroy
7437b58f20
Ignore PyCharm
2017-07-18 14:17:45 +03:00
seroy
db6664c84f
Remove wrong filename
2017-07-18 14:16:46 +03:00
seroy
928c4c624d
Add test whether get_context contains 'lang_code' and 'lang_name' attribute
2017-07-18 13:54:53 +03:00
seroy
3d4f9c413e
Fix non-valid HTML tags attributes
2017-07-18 13:52:17 +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
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
5347db6d8f
Add contributors list to README
2017-07-18 09:38:51 +03:00
Swen Kooij
1accee0b59
Merge branch 'master' into widget_refactor
2017-07-18 09:33:59 +03:00
Swen Kooij
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
8b76948328
Merge pull request #33 from MELScience/issue32
...
Django requirement updated
2017-07-18 09:29:09 +03:00
seroy
940587d748
Updated django requirement
2017-07-18 01:06:49 +03:00
seroy
6522e38f18
Added tests for LocalizedFieldWidget.get_context method
2017-07-18 01:03:50 +03:00
seroy
69cf0df166
Use template-based widget rendering in AdminLocalizedFieldWidget
2017-07-18 00:29:44 +03:00
seroy
d8c5544e91
Use template-based widget rendering in AdminLocalizedFieldWidget
2017-07-17 22:53:47 +03:00