Remove the need to use link_spacer for single groups of multi item actions

This commit is contained in:
Roberto Rosario
2015-01-17 02:27:42 -04:00
parent fca4165f39
commit e6d24fd62f
6 changed files with 12 additions and 11 deletions

View File

@@ -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)