From bf55bf0fa9f9a8d27c9ecb63f2cd2ba5d6d15dc8 Mon Sep 17 00:00:00 2001 From: Hugo Levy-Falk Date: Thu, 30 Apr 2020 22:36:41 +0200 Subject: [PATCH] PEP8 is for everyone. --- machines/models.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/machines/models.py b/machines/models.py index f82610f6..0835f38e 100644 --- a/machines/models.py +++ b/machines/models.py @@ -1361,8 +1361,10 @@ class Interface(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model): if not (user_request.has_perm("machines.delete_interface") and can_user): return ( False, - _("You don't have the right to delete interfaces of another" - " user."), + _( + "You don't have the right to delete interfaces of another" + " user." + ), ("machines.delete_interface",) + (permissions or ()), ) return True, None, None @@ -1464,7 +1466,9 @@ class Ipv6List(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model): if not (user_request.has_perm("machines.change_ipv6list") and can_user): return ( False, - _("You don't have the right to edit ipv6 of a machine of another user."), + _( + "You don't have the right to edit ipv6 of a machine of another user." + ), ("machines.change_ipv6list",), ) return True, None, None @@ -1482,7 +1486,9 @@ class Ipv6List(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model): if not (user_request.has_perm("machines.delete_ipv6list") and can_user): return ( False, - _("You don't have the right to delete ipv6 of a machine of another user."), + _( + "You don't have the right to delete ipv6 of a machine of another user." + ), ("machines.delete_ipv6list",) + (permissions or ()), ) return True, None, None @@ -1499,7 +1505,9 @@ class Ipv6List(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model): ): return ( False, - _("You don't have the right to view ipv6 of machines other than yours."), + _( + "You don't have the right to view ipv6 of machines other than yours." + ), ("machines.view_ipv6list",), ) return True, None, None