From a7f1bc6e7f30e72cd102e9a9b210d2ee3ac2fac3 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Wed, 23 Dec 2020 15:16:39 +0100 Subject: [PATCH] added all fields to EvaFormView --- evapp/templates/evapp/employee_form.html | 2 +- evapp/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/evapp/templates/evapp/employee_form.html b/evapp/templates/evapp/employee_form.html index 40c080e..572164d 100644 --- a/evapp/templates/evapp/employee_form.html +++ b/evapp/templates/evapp/employee_form.html @@ -1 +1 @@ -{{form}} +{{form.as_p}} diff --git a/evapp/views.py b/evapp/views.py index 17664fe..4d5068f 100644 --- a/evapp/views.py +++ b/evapp/views.py @@ -6,4 +6,4 @@ from .models import Employee # Create your views here. class EvaFormView(CreateView): model = Employee - fields = ['firstname'] + fields = '__all__' # ['firstname']