mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 22:22:26 +00:00
Better naming
This commit is contained in:
parent
1c2ce26060
commit
4f1102c0c5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue