Fixed unit tests.

see #1106
This commit is contained in:
Antoine Nguyen
2017-04-24 13:21:50 +02:00
parent 6910e9b008
commit 639550eedd
+1 -1
View File
@@ -57,7 +57,7 @@ class ResourcePoolForm(forms.Form):
l = self.account.userobjectlimit_set.get(name=name)
if not owner.is_superuser:
allocate_resources_from_user(
l, owner, self.cleaned_data["fieldname"])
l, owner, self.cleaned_data[fieldname])
l.max_value = self.cleaned_data[fieldname]
l.save(update_fields=["max_value"])