From 5eb16b7ee8a7206eec8ac50e651920a4a2b6c743 Mon Sep 17 00:00:00 2001 From: Drew Hubl Date: Sun, 1 Jan 2017 19:21:22 -0700 Subject: [PATCH] Fix min_choices commit --- multiselectfield/db/fields.py | 1 + 1 file changed, 1 insertion(+) diff --git a/multiselectfield/db/fields.py b/multiselectfield/db/fields.py index f849740..2162c49 100644 --- a/multiselectfield/db/fields.py +++ b/multiselectfield/db/fields.py @@ -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)