From c653e0986e36fc848d5ce355d2aa26dad7004480 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 19 Mar 2020 20:39:19 +0100 Subject: [PATCH] Remove UserPermission model --- apps/permission/models.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apps/permission/models.py b/apps/permission/models.py index 43f62ac2..7934aa16 100644 --- a/apps/permission/models.py +++ b/apps/permission/models.py @@ -257,10 +257,3 @@ class Permission(models.Model): else: return _("Can {type} {model} in {query}").format(type=self.type, model=self.model, query=self.query) - -class UserPermission(models.Model): - - user = models.ForeignKey('auth.User', on_delete=models.CASCADE) - - permission = models.ForeignKey(Permission, on_delete=models.CASCADE) -