1.添加用户 和编辑可以写在一起 urls.py url(r'^customer_add/', customer.customer_change, name='customer_add'), url(r'^customer_edit/(\d+)/', customer.customer_change, name='customer_edit'), form.py class BSForm(forms.ModelForm): def __init__(self, *args, **kwargs):…