from django.forms import ModelForm
from .models import *
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm


class CreateUserForm(UserCreationForm):
    class Meta:
        model = User 
        fields = ['username', 'email', '<PASSWORD>', '<PASSWORD>']

class TaskForm(ModelForm):
    class Meta:
        model = Taskmodel
        fields = '__all__'
        
from django.forms import ModelForm
from .models import *
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm


class CreateUserForm(UserCreationForm):
    class Meta:
        model = User 
        fields = ['username', 'email', '<PASSWORD>', '<PASSWORD>']

class TaskForm(ModelForm):
    class Meta:
        model = Taskmodel
        fields = '__all__'
        