You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

forms.py 298B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. from django.forms import ModelForm
  3. from oscar.core.loading import import_module
  4. import_module('address.models', ['UserAddress'], locals())
  5. class UserAddressForm(ModelForm):
  6. class Meta:
  7. model = UserAddress
  8. exclude = ('user', 'num_orders', 'hash')