Improvements to generic lists

This commit is contained in:
2020-03-22 12:46:52 +00:00
parent 41b0387e49
commit ee7ba3ea19
13 changed files with 112 additions and 130 deletions

View File

@@ -104,6 +104,7 @@ class PersonDetail(generic.DetailView):
class PersonCreate(generic.CreateView):
template_name = 'person_form.html'
model = models.Person
fields = ['name', 'phone', 'email', 'address', 'notes']
@@ -121,6 +122,7 @@ class PersonCreate(generic.CreateView):
class PersonUpdate(generic.UpdateView):
template_name = 'person_form.html'
model = models.Person
fields = ['name', 'phone', 'email', 'address', 'notes']