From 4f1102c0c5502461f5d97f6071281f056b4f844a Mon Sep 17 00:00:00 2001 From: klafyvel Date: Thu, 19 Sep 2019 23:16:02 +0200 Subject: [PATCH] Better naming --- machines/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machines/forms.py b/machines/forms.py index a56ecbf3..4ea2323b 100644 --- a/machines/forms.py +++ b/machines/forms.py @@ -120,7 +120,7 @@ class EditInterfaceForm(FormRevMixin, FieldPermissionFormMixin, ModelForm): if "machine" in self.fields: self.fields['machine'].queryset = Machine.objects.all() \ .select_related('user') - can_use_all_machinetype, _reason, _message = MachineType.can_use_all(user) + can_use_all_machinetype, _reason, _permissions = MachineType.can_use_all(user) if not can_use_all_machinetype: self.fields['machine_type'].queryset = MachineType.objects.filter( ip_type__in=IpType.objects.filter(need_infra=False) @@ -146,7 +146,7 @@ class AliasForm(FormRevMixin, ModelForm): prefix = kwargs.pop('prefix', self.Meta.model.__name__) user = kwargs.pop('user') super(AliasForm, self).__init__(*args, prefix=prefix, **kwargs) - can_use_all, _reason, _message = Extension.can_use_all(user) + can_use_all, _reason, _permissions = Extension.can_use_all(user) if not can_use_all: self.fields['extension'].queryset = Extension.objects.filter( need_infra=False