def save(self):
    if (not hasattr(self.user, 'userprofile')):
        UserProfile.objects.create(user=self.user)
    address = Address.objects.create(address_line_1=self.cleaned_data['address_line_1'], address_line_2=self.cleaned_data['address_line_2'], city=self.cleaned_data['city'], state=self.cleaned_data['state'], zipcode=self.cleaned_data['zipcode'], special_instructions=self.cleaned_data['special_instructions'])
    self.user.userprofile.address = address
    self.user.userprofile.save()
def save(self):
    if (not hasattr(self.user, 'userprofile')):
        UserProfile.objects.create(user=self.user)
    address = Address.objects.create(address_line_1=self.cleaned_data['address_line_1'], address_line_2=self.cleaned_data['address_line_2'], city=self.cleaned_data['city'], state=self.cleaned_data['state'], zipcode=self.cleaned_data['zipcode'], special_instructions=self.cleaned_data['special_instructions'])
    self.user.userprofile.address = address
    self.user.userprofile.save()