From 35e50964a16d3d16fafa4a30f6c03365e749f941 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Mon, 25 Nov 2019 15:25:52 +0100 Subject: [PATCH] Fix function called by perm check --- machines/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/models.py b/machines/models.py index 7b548cfb..c5a95863 100644 --- a/machines/models.py +++ b/machines/models.py @@ -1662,7 +1662,7 @@ class Domain(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model): if self.interface_parent: return self.interface_parent else: - return self.cname.get_parent_interface() + return self.cname.get_source_interface @staticmethod def can_create(user_request, interfaceid, *_args, **_kwargs):