class CustomerRegistrationForm(forms.Form):
    def __init__(self, *args, **kwargs):
        self.helper = FormHelper()
        self.helper.form_action = 'customer_register'
        self.helper.layout = Layout(
            HTML("""<h3>Create new customers account</h3>"""),
            Row(Field('first_name',),),
            Field('last_name',),
            Field('gender',),
            Row( Field('gender'),),
        )
此类的结果就像字段位于标签下方,但我想要类似https://github.com/maraujop/django-crispy-forms的示例,其中标签和字段位于相同线。
我错过了什么?