Skip to content

Commit

Permalink
add login form
Browse files Browse the repository at this point in the history
  • Loading branch information
shahriaarrr committed Aug 10, 2021
1 parent 956cd73 commit 68cd5b6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion todo/account/forms.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
from django import forms
from django.forms import fields

from .models import *

class Signup(forms.ModelForm):
class Meta:
models = User
fields = ('username', 'first name', 'last name', 'email', 'age', 'gender')
fields = ('username', 'first name', 'last name', 'email', 'age', 'gender')


class Login(forms.ModelForm):
class Meta:
models = User
fields = ('username', 'password')

0 comments on commit 68cd5b6

Please sign in to comment.