Skip to content

Commit

Permalink
add min_choices to defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Nametkin committed Mar 23, 2021
1 parent 07a5e44 commit d5cba4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions multiselectfield/db/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def formfield(self, **kwargs):
'choices': self.choices,
'flat_choices': self.flatchoices,
'max_length': self.max_length,
'min_choices': self.min_choices,
'max_choices': self.max_choices}
if self.has_default():
defaults['initial'] = self.get_default()
Expand Down

0 comments on commit d5cba4a

Please sign in to comment.