Fix min_choices commit
This commit is contained in:
parent
6c64640978
commit
5eb16b7ee8
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ class MultiSelectField(models.CharField):
|
||||||
""" Choice values can not contain commas. """
|
""" Choice values can not contain commas. """
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
self.min_choices = kwargs.pop('min_choices', None)
|
||||||
self.max_choices = kwargs.pop('max_choices', None)
|
self.max_choices = kwargs.pop('max_choices', None)
|
||||||
super(MultiSelectField, self).__init__(*args, **kwargs)
|
super(MultiSelectField, self).__init__(*args, **kwargs)
|
||||||
self.max_length = get_max_length(self.choices, self.max_length)
|
self.max_length = get_max_length(self.choices, self.max_length)
|
||||||
|
|
Loading…
Reference in a new issue