mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-25 01:20:35 +00:00
removed unneeded code for invite question
This commit is contained in:
parent
e1e03ebd22
commit
35f115bc0a
2 changed files with 1 additions and 2 deletions
|
@ -51,7 +51,7 @@ class LoginForm(CustomForm):
|
||||||
class RegisterForm(CustomForm):
|
class RegisterForm(CustomForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = models.User
|
model = models.User
|
||||||
fields = ["localname", "email", "password", "answer"]
|
fields = ["localname", "email", "password"]
|
||||||
help_texts = {f: None for f in fields}
|
help_texts = {f: None for f in fields}
|
||||||
widgets = {"password": PasswordInput()}
|
widgets = {"password": PasswordInput()}
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,6 @@ class User(OrderedCollectionPageMixin, AbstractUser):
|
||||||
|
|
||||||
username = fields.UsernameField()
|
username = fields.UsernameField()
|
||||||
email = models.EmailField(unique=True, null=True)
|
email = models.EmailField(unique=True, null=True)
|
||||||
answer = fields.TextField(max_length=500, blank=True)
|
|
||||||
|
|
||||||
key_pair = fields.OneToOneField(
|
key_pair = fields.OneToOneField(
|
||||||
"KeyPair",
|
"KeyPair",
|
||||||
|
|
Loading…
Reference in a new issue