# Path: main/models.py
# class Comment(models.Model):
# class Tag(models.Model):


from django.forms import ModelForm
from django import forms
from main.models import User, Channel

class SignupForm(ModelForm):

    def create_user(self):
        user = User.objects.create_user(username=self.cleaned_data.get("username"), email=self.cleaned_data.get("email"), password=self.cleaned_data.get("password"))
	return user

    class Meta:
        model = User
	fields = ["username", "password", "email"]


class LoginForm(ModelForm):

    class Meta:

# Path: main/models.py
# class Comment(models.Model):
# class Tag(models.Model):


# Path: main/forms.py
from django.forms import ModelForm
from django import forms
from main.models import User, Channel


class SignupForm(ModelForm):

    def create_user(self):
        user = User.objects.create_user(username=self.cleaned_data.get("username"), email=self.cleaned_data.get("email"), password=self.cleaned_data.get("password"))
	return user

    class Meta:
        model = User
	fields = ["username", "password", "email"]


class LoginForm(ModelForm):

    class Meta:

        model = User