From 9807433fe8a46871cf06c45a62cfbed90d4175fc Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 28 May 2019 12:07:05 +0200 Subject: [PATCH] Fix fields --- manuels/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manuels/views.py b/manuels/views.py index 1c63dde..47d6f29 100644 --- a/manuels/views.py +++ b/manuels/views.py @@ -162,7 +162,7 @@ class AddSuppliesView(SuppliesView, AddItemView): supplies = SuppliesRequirement.objects.create( teacher=form.cleaned_data['teacher'], level=level, - fields=form.cleaned_data['fields'], + field=form.cleaned_data['field'], supplies=form.cleaned_data['supplies'], ) messages.success(self.request, f'"{supplies}" a été ajouté.')