From: Ansgar Burchardt Date: Tue, 29 May 2012 17:31:40 +0000 (+0200) Subject: daklib/dbconn.py: remove two unused backreferences X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f6ea507fb8fb89fb94cc948d0f497e373ae82ab;p=dak daklib/dbconn.py: remove two unused backreferences The backreferences were causing problems when creating new objects via the ORM. --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 1972e412..d9ab4cb8 100644 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -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,