Skip to content

Commit

Permalink
Merge pull request #123 from nametkin/add_min_choices
Browse files Browse the repository at this point in the history
Add 'min_choices' to defaults in 'formfield' function
  • Loading branch information
blag authored May 23, 2024
2 parents 395d0b2 + d5cba4a commit a571073
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 @@ -118,6 +118,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 a571073

Please sign in to comment.