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