Gherman Razvan
a66b3492cd
Add LocalizedBooleanField ( #93 )
2023-08-10 14:33:47 +02:00
Swen Kooij
92cb5e8b1f
Add LocalizedValue.is_empty()
2021-03-22 07:47:00 +02:00
Cristi Ingineru
8ed09f712d
Prevent accumulating redundant data
2020-11-25 12:00:11 +02:00
Alexandru Arnautu
8968b0c7a8
Format and lint code
2020-03-10 09:33:34 +02:00
Alexandru Arnautu
5e1d46669c
Create LocalizedNumericValue with __int__ and __float__ methods
2020-03-10 09:28:52 +02:00
Alexandru Arnautu
0d9ec6385c
Add LocalizedFloatValue
2020-03-10 09:26:00 +02:00
tudorvaran
47367da401
Accept callables as values in fields
2020-02-12 16:37:44 +02:00
Swen Kooij
7bf0311306
Add a language argument to LocalizedValue.translate(..)
2019-10-20 16:49:33 +03:00
Swen Kooij
7cdd1f4490
Re-format all files
2019-10-19 12:44:41 +03:00
Swen Kooij
3de1492a58
Use collections.abc.Iterable instead of collections.Iterable
...
The latter is going to be removed after Python 3.8
2019-08-14 08:57:05 +03:00
Adrian Muntean
d8b872758c
Return empty string in case of None
2019-02-20 12:26:04 +02:00
Cristi Ingineru
4922a1b93f
self.translate()
2018-09-24 12:57:46 +03:00
Cristi Ingineru
4f83cbf4ed
Add LocalizedIntegerFieldWidget
2018-08-16 14:27:38 +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
Dmitry Groshev
2a29efdf14
fix LocalizedValue.deconstruct (wrong module name)
2018-01-31 23:59:48 +00:00
Swen Kooij
16e23963cc
Add support for LOCALIZED_FIELDS_FALLBACKS
2017-06-26 13:27:52 +03:00
seroy
aacc712195
Merge branch 'master' of https://github.com/SectorLabs/django-localized-fields into extra-fields
2017-06-19 21:40:11 +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
a1a02552b7
Shorten names for everything
2017-05-25 19:06:44 +03:00