1
0
Fork 0

Allow account registration with invites.

This commit is contained in:
Adam Kelly 2020-06-01 22:34:45 +01:00
parent e0a009a0f1
commit 48f7fd34a7
8 changed files with 111 additions and 4 deletions

View file

@ -1,5 +1,5 @@
''' usin django model forms '''
from django.forms import ModelForm, PasswordInput
from django.forms import ModelForm, PasswordInput, HiddenInput
from django import forms
from fedireads import models
@ -21,7 +21,7 @@ class RegisterForm(ModelForm):
fields = ['username', 'email', 'password']
help_texts = {f: None for f in fields}
widgets = {
'password': PasswordInput(),
'password': PasswordInput()
}