<reponame>Nobella-Nyarari-Ejiofor/Neighbourood
from django.contrib.auth.models import User
from django import forms

import neighbour
from .models import Business, Profile , Neighbourhood , Posts

class ProfileForm(forms.ModelForm):
  class Meta:
    model = Profile
    exclude = ['user']

class NeighbourhoodForm(forms.ModelForm):
  class Meta:
    model = Neighbourhood
    exclude = ['occupants_count']

class PostForm(forms.ModelForm):
  class Meta:
    model = Posts
    exclude= ['profile','neighbourhood']

class BusinessForm(forms.ModelForm):
  class Meta:
    model = Business
    exclude =['profile', 'neighbourhood']
from django.contrib.auth.models import User
from django import forms

import neighbour
from .models import Business, Profile , Neighbourhood , Posts

class ProfileForm(forms.ModelForm):
  class Meta:
    model = Profile
    exclude = ['user']

class NeighbourhoodForm(forms.ModelForm):
  class Meta:
    model = Neighbourhood
    exclude = ['occupants_count']

class PostForm(forms.ModelForm):
  class Meta:
    model = Posts
    exclude= ['profile','neighbourhood']

class BusinessForm(forms.ModelForm):
  class Meta:
    model = Business
    exclude =['profile', 'neighbourhood']