From 82116ae076e87ce88e4d78bf07545939819c5525 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 22 2014 18:22:47 +0000 Subject: Add the relation between TagIssue and Issue --- diff --git a/progit/model.py b/progit/model.py index 59be78a..1d35150 100644 --- a/progit/model.py +++ b/progit/model.py @@ -372,6 +372,10 @@ class TagIssue(BASE): date_created = sa.Column(sa.DateTime, nullable=False, default=datetime.datetime.utcnow) + issue = relation( + 'Issue', foreign_keys=[issue_id], remote_side=[Issue.id], + backref='tags') + class PullRequest(BASE): """ Stores the pull requests created on a project.