]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/dbconn.py: remove two unused backreferences
authorAnsgar Burchardt <ansgar@debian.org>
Tue, 29 May 2012 17:31:40 +0000 (19:31 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sat, 11 Aug 2012 11:43:04 +0000 (13:43 +0200)
The backreferences were causing problems when creating new objects via
the ORM.

daklib/dbconn.py

index 1972e412af81e4a5bad852c30a14f13405945165..d9ab4cb847b3b9ef2b58cebf8c83af98d4acb267 100644 (file)
@@ -3404,7 +3404,7 @@ class DBConn(object):
                                  arch_id = self.tbl_binaries.c.architecture,
                                  architecture = relation(Architecture),
                                  poolfile_id = self.tbl_binaries.c.file,
-                                 poolfile = relation(PoolFile, backref=backref('binary', uselist = False)),
+                                 poolfile = relation(PoolFile),
                                  binarytype = self.tbl_binaries.c.type,
                                  fingerprint_id = self.tbl_binaries.c.sig_fpr,
                                  fingerprint = relation(Fingerprint),
@@ -3592,7 +3592,7 @@ class DBConn(object):
                                  version = self.tbl_source.c.version,
                                  maintainer_id = self.tbl_source.c.maintainer,
                                  poolfile_id = self.tbl_source.c.file,
-                                 poolfile = relation(PoolFile, backref=backref('source', uselist = False)),
+                                 poolfile = relation(PoolFile),
                                  fingerprint_id = self.tbl_source.c.sig_fpr,
                                  fingerprint = relation(Fingerprint),
                                  changedby_id = self.tbl_source.c.changedby,