removed unneeded code for invite question

This commit is contained in:
corentin-feys 2022-03-07 19:42:57 +01:00
parent e1e03ebd22
commit 35f115bc0a
2 changed files with 1 additions and 2 deletions

View file

@ -51,7 +51,7 @@ class LoginForm(CustomForm):
class RegisterForm(CustomForm):
class Meta:
model = models.User
fields = ["localname", "email", "password", "answer"]
fields = ["localname", "email", "password"]
help_texts = {f: None for f in fields}
widgets = {"password": PasswordInput()}

View file

@ -53,7 +53,6 @@ class User(OrderedCollectionPageMixin, AbstractUser):
username = fields.UsernameField()
email = models.EmailField(unique=True, null=True)
answer = fields.TextField(max_length=500, blank=True)
key_pair = fields.OneToOneField(
"KeyPair",