from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import Profile, Hood
from django_google_maps.widgets import GoogleMapsAddressWidget


class SignupForm(UserCreationForm):
    email = forms.EmailField(max_length=200, help_text = 'Required')

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

class HoodForm(forms.ModelForm):
    class Meta:
        model = Hood
        fields = '__all__'
        widgets = {
            'address': GoogleMapsAddressWidget,
        }
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from .models import Profile, Hood
from django_google_maps.widgets import GoogleMapsAddressWidget


class SignupForm(UserCreationForm):
    email = forms.EmailField(max_length=200, help_text = 'Required')

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

class HoodForm(forms.ModelForm):
    class Meta:
        model = Hood
        fields = '__all__'
        widgets = {
            'address': GoogleMapsAddressWidget,
        }