In the documentation about Django’s Admin site I read:
To display multiple fields on the same line, wrap those fields in their own tuple.
Is this feature also available for forms?
I tried:
class HeroForm(forms.ModelForm):
class Meta:
model = models.Hero
fields = (
'headline',
'sub_headline',
('btn_cta', 'btn_link'),
'active',
)
But that results in a TypeError.
TypeError: sequence item 0: expected str instance, tuple found
Kind regards,
Johanna