[Pkg-debile-commits] [debile-master] 119/126: Fixed polymorphic backref issue

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Aug 19 14:56:27 UTC 2013


This is an automated email from the git hooks/post-receive script.

sylvestre pushed a commit to branch scan-build-html
in repository debile-master.

commit 43eec3ff0bc5a9b8ab492d44afd6cf93375f5d7f
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Tue Aug 6 15:42:18 2013 +0200

    Fixed polymorphic backref issue
---
 lucy/orm.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lucy/orm.py b/lucy/orm.py
index 243137f..744bfec 100644
--- a/lucy/orm.py
+++ b/lucy/orm.py
@@ -65,7 +65,7 @@ class Source(Package):
     user = relationship("User", backref=backref('sources', order_by=name))
     dsc = Column(String(100))
     group_id = Column(Integer, ForeignKey('groups.id'))
-    group = relationship("Group", backref=backref('packages', order_by=name))
+    group = relationship("Group", backref=backref('sources', order_by=name))
     run = Column(Integer)
     def serialize(self):
         source_dict = row2dict(self)
@@ -91,7 +91,7 @@ class Binary(Package):
     arch = Column(String(20), nullable=False)
     suite = Column(String(50), nullable=False)
     group_id = Column(Integer, ForeignKey('groups.id'))
-    group = relationship("Group", backref=backref('packages', order_by=name))
+    group = relationship("Group", backref=backref('binaries', order_by=name))
     run = Column(Integer)
     def serialize(self):
         binary_dict = row2dict(self)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git



More information about the Pkg-debile-commits mailing list