correct the order of the customer fields

This commit is contained in:
Andreas Zweili 2020-06-09 21:43:34 +02:00
parent 29f869ea78
commit 17a67fda8c
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class CustomerCreateView(LoginRequiredMixin, CreateView):
"""
model = Customer
template_name = 'customers/customer_create.html'
fields = '__all__'
fields = ['name', 'description']
def get_success_url(self):
return reverse('customer', args=(self.object.pk,))