from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import *
from django.shortcuts import get_object_or_404

class NeighbourhoodForm(forms.ModelForm):    
    class Meta:
        model = Neighbourhood
        fields = ('neighbourhood',) 
        
class ProfileForm(forms.ModelForm):
    class Meta:
        model = Profile
        exclude = ['user', 'hood']
427ce703f09179b58293160189f43ca59586acc4
<mask token>

<mask token>


class ProfileForm(forms.ModelForm):


    class Meta:
        model = Profile
        exclude = ['user', 'hood']

<mask token>


class NeighbourhoodForm(forms.ModelForm):


    class Meta:
        model = Neighbourhood
        fields = 'neighbourhood',


class ProfileForm(forms.ModelForm):


    class Meta:
        model = Profile
        exclude = ['user', 'hood']

from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import *
from django.shortcuts import get_object_or_404


class NeighbourhoodForm(forms.ModelForm):


    class Meta:
        model = Neighbourhood
        fields = 'neighbourhood',


class ProfileForm(forms.ModelForm):


    class Meta:
        model = Profile
        exclude = ['user', 'hood']

from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import *
from django.shortcuts import get_object_or_404

class NeighbourhoodForm(forms.ModelForm):    
    class Meta:
        model = Neighbourhood
        fields = ('neighbourhood',) 
        
class ProfileForm(forms.ModelForm):
    class Meta:
        model = Profile
        exclude = ['user', 'hood']