From 688b9fbe7d77d8966e8ef25fd41b08bd377a0d48 Mon Sep 17 00:00:00 2001 From: boke0 Date: Fri, 5 Mar 2021 02:41:38 +0900 Subject: [PATCH] [fix] --- mitama/models/permissions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mitama/models/permissions.py b/mitama/models/permissions.py index 29531df..7f4b664 100644 --- a/mitama/models/permissions.py +++ b/mitama/models/permissions.py @@ -1,4 +1,4 @@ -from mitama.db import DatabaseManager, BaseDatabase, func, ForeignKey, relationship, Table, backref +from mitama.db import DatabaseManager, BaseDatabase, func, ForeignKey, relationship, Table from mitama.db.types import Column, Group, Integer, LargeBinary from mitama.db.types import Node as NodeType from mitama.db.types import String @@ -97,7 +97,6 @@ class InnerPermission(db_.Model): roles = relationship( "InnerRole", secondary=inner_role_permission, - backref="permissions", cascade="all, delete" )