Jian Dai
794bd41546
Optimize multiselectfield to_python method. ( #106 )
...
* Optimize multiselectfield to_python method.
When using with django import export plugin, optimize these 2 things:
1. User usally input a " " after ",", optimize the parse method, trim it.
2. User also can input "," instead of ",", for a better user experience.
* Update fields.py
2020-02-20 06:53:32 +01:00
Serj S
c4579138dd
fix issue "TypeError: 'int' object is not iterable" during update (pre_save), add tests ( #100 )
2019-11-01 07:03:57 +01:00
Tomas
27851b8eb5
Change python3 compatibility
2019-09-24 13:16:34 +02:00
Tomas
b2aad8da31
Adding back compatibility
2019-09-24 10:44:30 +02:00
tomasgarzon
8f5581d715
Merge branch 'master' into drop_unsupported_versions
2019-09-19 06:51:45 +02:00
Tomas
965e1c12a9
Fix flake8 errors
2019-09-13 07:27:09 +02:00
Chihiro Kaneko
a0b438280c
Fix deprecation warnings.
2018-09-24 10:20:41 +09:00
Chihiro Kaneko
944f2b51ee
Drop django 1.10 or lower and Django 1.11 or higher support.
2018-09-24 10:20:21 +09:00
Andrew Miller
d6ad0115b7
finish flake8 and pass choices to MSFList
2017-07-25 16:58:52 +01:00
Andrew Miller
dadfdaee12
flake 8
2017-07-25 16:56:26 +01:00
Andrew Miller
3173384d68
move MSFList class to global scope
...
Fixes #65 which enables serialisation with pickle
2017-07-25 16:45:19 +01:00
atten
6cdeff7b2a
python2 compatible fix
2017-05-10 05:01:50 -06:00
blag
81fc7abc8e
Merge pull request #56 from ixc/master
...
A fix for field labels in the admin as decribed in my comment in issue #26
2017-02-21 15:27:09 -07:00
Drew Hubl
01dcad230d
Add support for MultiSelectFields being listed in Admin.list_display
2017-02-21 15:26:38 -07:00
Aram Dulyan
76a9df55f5
Display correct labels in the admin when get_FIELDNAME_display is used as a readonly field. Re #26
2017-02-08 17:54:51 +11:00
Drew Hubl
9663f1d4ca
Add flake8 tests, and fix all flake8 errors we don't ignore
2017-01-01 20:41:35 -07:00
Drew Hubl
5eb16b7ee8
Fix min_choices commit
2017-01-01 19:21:22 -07:00
Werner Pieterson
6c64640978
Add min_choices validation
2017-01-01 18:50:26 -07:00
James Andres
203411c3cf
Support for named groups in choices
2016-09-23 05:12:35 -06:00
Drew Hubl
ffcb337744
Remove flatchoices property - fixes #37
2016-09-23 04:26:24 -06:00
Drew Hubl
d997a7a422
Add test for .values_list()
2016-09-23 04:15:01 -06:00
blag
d34f743e2b
Merge pull request #27 from dmitry-krasilnikov/master
...
Specifying default value in South fixed
2016-09-22 10:49:16 -06:00
Drew Hubl
17ef02d42d
Add Django 1.8-1.10 to tox and travis configs
2016-09-22 09:28:31 -06:00
Danilo G. Botelho
9dd27b1b48
to_python returns list instead of None
2015-06-03 15:21:12 -03:00
Dmitriy Krasilnikov
9abd91dafa
Using string_type instead of str and unicode
2014-12-20 11:38:16 +08:00
Dmitriy Krasilnikov
6ce92c4ea4
Specifying default value in South fixed
2014-11-28 13:54:30 +08:00
Pablo Martín
c232d1776c
Better more explicit
2014-10-13 19:57:40 +02:00
Pablo Martín
5009091673
Fix #16 Now the multiselectfield could be a readonly.
...
This solution is a little dirty, please if this does not work (in some case) tell me something
2014-10-13 17:08:19 +02:00
Pablo Martín
feb36f8fce
Merge branch 'master' of https://github.com/litchfield/django-multiselectfield into get_display
...
Conflicts:
multiselectfield/db/fields.py
2014-10-13 16:16:06 +02:00
Pablo Martín
ccc40aa0f5
Ready to new release
2014-10-13 15:57:44 +02:00
Vasyl Stanislavchuk
cbfe2ee9bd
Fixed get_field_display method for None value.
2014-07-21 14:52:30 +03:00
Simon Litchfield
c7daa84610
Improved handling of empty values
2014-05-14 18:03:55 +10:00
Simon Litchfield
e8c9650f19
Added get_FIELD_list method to return choice labels as a list rather than a comma separated string
2014-05-14 17:50:59 +10:00
Vasyl Stanislavchuk
009d6c1c52
Fixed prep/to_python values of model field.
2013-12-31 10:54:15 +02:00
Pablo Martín
156c78a665
Move multiselectfile app to parent folder
2013-12-04 16:44:19 +01:00