Remove the need to use link_spacer for single groups of multi item actions
This commit is contained in:
@@ -19,6 +19,9 @@ class MultiItemForm(forms.Form):
|
||||
else:
|
||||
group.append(action)
|
||||
|
||||
self.fields['action'].choices = choices
|
||||
if choices:
|
||||
self.fields['action'].choices = choices
|
||||
else:
|
||||
self.fields['action'].choices = group
|
||||
|
||||
action = forms.ChoiceField(label=_(u'Actions'), required=False)
|
||||
|
||||
Reference in New Issue
Block a user