From 6f3c1d94a6a8858369256b63cec90d42d61706ae Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Fri, 20 Mar 2020 11:06:20 +0100 Subject: feat: add auth --- frest/auth/forms.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 frest/auth/forms.py (limited to 'frest/auth/forms.py') 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 -- cgit v1.2.3-71-g8e6c