diff options
author | Santo Cariotti <dcariotti24@gmail.com> | 2020-03-20 11:06:20 +0100 |
---|---|---|
committer | Santo Cariotti <dcariotti24@gmail.com> | 2020-03-20 11:06:24 +0100 |
commit | 6f3c1d94a6a8858369256b63cec90d42d61706ae (patch) | |
tree | 7224f1b95b8794ef40a97b55e650d38bac9d7201 /frest/auth/forms.py | |
parent | 9f8faa7c8e7aab724450a281ce3b5583c2c25e6a (diff) |
feat: add auth
Diffstat (limited to 'frest/auth/forms.py')
-rw-r--r-- | frest/auth/forms.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/frest/auth/forms.py b/frest/auth/forms.py new file mode 100644 index 0000000..abc2f49 --- /dev/null +++ b/frest/auth/forms.py @@ -0,0 +1,10 @@ +from .models import User +from forms import ModelForm + + +class UserForm(ModelForm): + model = User + + def __init__(self, data): + super().__init__(self.model) + self.data = data |