Fix fields

This commit is contained in:
Gabriel Augendre 2019-05-28 12:07:05 +02:00 committed by GitHub
parent 1474b918f2
commit 9807433fe8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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é.')