Changes between Version 2 and Version 3 of Ticket #27331, comment 7
- Timestamp:
- Dec 20, 2018, 6:24:32 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27331, comment 7
v2 v3 25 25 if isinstance(choices_groupby, str): 26 26 choices_groupby = attrgetter(choices_groupby) 27 elif not callable(choices_groupby): 28 raise TypeError('choices_groupby must either be a str or a callable accepting a single argument') 27 29 self.iterator = partial(GroupedModelChoiceIterator, groupby=choices_groupby) 28 30 super().__init__(*args, **kwargs)