From 1b412606433e411b3afa5d98e555a58361df43f5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 27 2015 13:42:25 +0000 Subject: Adjust the data model for IssueTag, the cascade is in the backref, not the relation --- diff --git a/progit/lib/model.py b/progit/lib/model.py index ba9d0a3..f8b216d 100644 --- a/progit/lib/model.py +++ b/progit/lib/model.py @@ -455,7 +455,9 @@ class TagIssue(BASE): issue = relation( 'Issue', foreign_keys=[issue_uid], remote_side=[Issue.uid], - backref='tags', cascade="delete, delete-orphan", single_parent=True) + backref=backref( + 'tags', cascade="delete, delete-orphan", single_parent=True) + ) class PullRequest(BASE):