Django: Usuń pole z podklasy Form

class LoginForm(forms.Form):
    nickname = forms.CharField(max_length=100)
    username = forms.CharField(max_length=100)
    password = forms.CharField(widget=forms.PasswordInput)


class LoginFormWithoutNickname(LoginForm):
    # i don't want the field nickname here
    nickname = None #??

Czy istnieje sposób, aby to osiągnąć?

Uwaga: nie mamModelForm, więcMeta klasa zexclude nie działa.

questionAnswers(4)

yourAnswerToTheQuestion