Swen Kooij
05bcd84a88
Merge pull request #29 from MELScience/required
...
Improved functionality of required parameter
2017-07-18 09:33:24 +03:00
seroy
0f08eb8280
Add test on render method
2017-07-17 22:05:31 +03:00
seroy
33e9709373
Add tests for 'required' attribute
2017-07-17 20:55:13 +03:00
Swen Kooij
7d629c186d
Add basic tests for 'required' attribute
2017-07-16 12:22:48 +03:00
Swen Kooij
08690ab361
Fix outstanding PEP8 and Flake8 issues
2017-07-15 14:06:50 +03:00
seroy
aaf49614f2
improve functionality of required parameter
2017-07-14 15:07:48 +03:00
seroy
2b34b6751e
Added test for value_to_string
method
2017-06-26 18:08:15 +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
7316d312b4
Add simple test for LOCALIZED_FIELDS_FALLBACKS setting
2017-06-26 13:36:21 +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
seroy
e5d7cd25e2
Shorten names for everything
2017-06-19 21:58:48 +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
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
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
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
2205f9c6a4
Move LocalizedValueTest into dedicated file
2017-05-25 19:16:04 +03:00
Swen Kooij
a1a02552b7
Shorten names for everything
2017-05-25 19:06:44 +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
db93b93046
added test for LocalizedFileField and LocalizedFileFieldForm
2017-04-24 20:30:44 +03:00
seroy
fc80462ce7
added test for str parameter to_python method
2017-04-13 11:41:24 +03:00
seroy
8591af1f2a
fixed "Apps aren't loaded yet." exception
2017-04-12 14:11:29 +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
Bogdan Hopulele
8bdfee0666
Implement review suggestions
2017-03-24 14:48:33 +02: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
9278e99b18
import fixed
2017-03-18 18:44:26 +03:00
seroy
340dde18cd
no need inheritance from LocalizedModel anymore. Introduction of LocalizedValueDescriptor
2017-03-13 00:50:34 +03: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
ca6b1c88fa
Add option include_time to LocalizedUniqueSlugField
2017-02-15 19:13:19 +02:00
Swen Kooij
b121dfc2d7
Added __eq__ operator to LocalizedValue
2017-02-09 14:57:08 +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
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
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
fc31e1e5f1
Fixed slugs not being generated for unicode texts
2017-01-26 01:18:46 +02:00