from hood.models import Business, Neighbourhood, Post, Profile
from django.contrib.auth.models import User
from django import forms
from django.contrib.auth.forms import UserCreationForm


class SignUpForm(UserCreationForm):
    email = forms.EmailField()

    class Meta:
        model = User
        fields = ('username', 'email', 'password1', 'password2', )

class UpdateProfileForm(forms.ModelForm):
    class Meta:
        model = Profile
        fields = ['email','profile_pic', 'bio','neighbourhood']

class UpdateUserForm(forms.ModelForm):

    class Meta:
        model = User
        fields = ('username',)

class PostForm(forms.ModelForm):
    class Meta:
        model = Post
        exclude = ['title', 'image','content','timestamp']

class NewHoodForm(forms.ModelForm):
    class Meta:
        model = Neighbourhood
        exclude = ('admin',)  

class NewBusinessForm(forms.ModelForm):
    class Meta:
        model = Business
        exclude = ('user',)

class PostForm(forms.ModelForm):
    class Meta:
        model = Post
        exclude = ('user',)              

4bf67da6fd9ae8cc3401b3f99c1171c94a7f8bd2
<mask token>


class UpdateUserForm(forms.ModelForm):


    class Meta:
        model = User
        fields = 'username',


class PostForm(forms.ModelForm):


    class Meta:
        model = Post
        exclude = ['title', 'image', 'content', 'timestamp']


class NewHoodForm(forms.ModelForm):


    class Meta:
        model = Neighbourhood
        exclude = 'admin',


class NewBusinessForm(forms.ModelForm):


    class Meta:
        model = Business
        exclude = 'user',


class PostForm(forms.ModelForm):


    class Meta:
        model = Post
        exclude = 'user',

<mask token>


class SignUpForm(UserCreationForm):
    <mask token>


    class Meta:
        model = User
        fields = 'username', 'email', 'password1', 'password2'


class UpdateProfileForm(forms.ModelForm):


    class Meta:
        model = Profile
        fields = ['email', 'profile_pic', 'bio', 'neighbourhood']


class UpdateUserForm(forms.ModelForm):


    class Meta:
        model = User
        fields = 'username',


class PostForm(forms.ModelForm):


    class Meta:
        model = Post
        exclude = ['title', 'image', 'content', 'timestamp']


class NewHoodForm(forms.ModelForm):


    class Meta:
        model = Neighbourhood
        exclude = 'admin',


class NewBusinessForm(forms.ModelForm):


    class Meta:
        model = Business
        exclude = 'user',


class PostForm(forms.ModelForm):


    class Meta:
        model = Post
        exclude = 'user',

<mask token>


class SignUpForm(UserCreationForm):
    email = forms.EmailField()


    class Meta:
        model = User
        fields = 'username', 'email', 'password1', 'password2'


class UpdateProfileForm(forms.ModelForm):


    class Meta:
        model = Profile
        fields = ['email', 'profile_pic', 'bio', 'neighbourhood']


class UpdateUserForm(forms.ModelForm):


    class Meta:
        model = User
        fields = 'username',


class PostForm(forms.ModelForm):


    class Meta:
        model = Post
        exclude = ['title', 'image', 'content', 'timestamp']


class NewHoodForm(forms.ModelForm):


    class Meta:
        model = Neighbourhood
        exclude = 'admin',


class NewBusinessForm(forms.ModelForm):


    class Meta:
        model = Business
        exclude = 'user',


class PostForm(forms.ModelForm):


    class Meta:
        model = Post
        exclude = 'user',

from hood.models import Business, Neighbourhood, Post, Profile
from django.contrib.auth.models import User
from django import forms
from django.contrib.auth.forms import UserCreationForm


class SignUpForm(UserCreationForm):
    email = forms.EmailField()


    class Meta:
        model = User
        fields = 'username', 'email', 'password1', 'password2'


class UpdateProfileForm(forms.ModelForm):


    class Meta:
        model = Profile
        fields = ['email', 'profile_pic', 'bio', 'neighbourhood']


class UpdateUserForm(forms.ModelForm):


    class Meta:
        model = User
        fields = 'username',


class PostForm(forms.ModelForm):


    class Meta:
        model = Post
        exclude = ['title', 'image', 'content', 'timestamp']


class NewHoodForm(forms.ModelForm):


    class Meta:
        model = Neighbourhood
        exclude = 'admin',


class NewBusinessForm(forms.ModelForm):


    class Meta:
        model = Business
        exclude = 'user',


class PostForm(forms.ModelForm):


    class Meta:
        model = Post
        exclude = 'user',

from hood.models import Business, Neighbourhood, Post, Profile
from django.contrib.auth.models import User
from django import forms
from django.contrib.auth.forms import UserCreationForm


class SignUpForm(UserCreationForm):
    email = forms.EmailField()

    class Meta:
        model = User
        fields = ('username', 'email', 'password1', 'password2', )

class UpdateProfileForm(forms.ModelForm):
    class Meta:
        model = Profile
        fields = ['email','profile_pic', 'bio','neighbourhood']

class UpdateUserForm(forms.ModelForm):

    class Meta:
        model = User
        fields = ('username',)

class PostForm(forms.ModelForm):
    class Meta:
        model = Post
        exclude = ['title', 'image','content','timestamp']

class NewHoodForm(forms.ModelForm):
    class Meta:
        model = Neighbourhood
        exclude = ('admin',)  

class NewBusinessForm(forms.ModelForm):
    class Meta:
        model = Business
        exclude = ('user',)

class PostForm(forms.ModelForm):
    class Meta:
        model = Post
        exclude = ('user',)              
