from django import forms
from .models import localAddress

class AddressForm(forms.ModelForm):
    class Meta:
        model = localAddress
        fields = '__all__'
    def __init__(self, *args, **kwargs):
        super(AddressForm, self).__init__(*args, **kwargs)
        self.fields['fname'].label = "<NAME>"
        self.fields['lname'].label = "<NAME>"
        self.fields['address'].label = "Address"
        self.fields['phoneNumber'].label = "Phone Number"
        self.fields['university'].label = "Select Your College"
        self.fields['address'].widget.attrs.update(style='max-width: 20em')
from django import forms
from .models import localAddress

class AddressForm(forms.ModelForm):
    class Meta:
        model = localAddress
        fields = '__all__'
    def __init__(self, *args, **kwargs):
        super(AddressForm, self).__init__(*args, **kwargs)
        self.fields['fname'].label = "<NAME>"
        self.fields['lname'].label = "<NAME>"
        self.fields['address'].label = "Address"
        self.fields['phoneNumber'].label = "Phone Number"
        self.fields['university'].label = "Select Your College"
        self.fields['address'].widget.attrs.update(style='max-width: 20em')