[copr] master: One more backref name fix (533230d)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Tue Jan 15 11:06:28 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit 533230d92bb20e1dfefff0a82f4b206267e838dc
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Mon Jan 14 14:46:58 2013 +0100

    One more backref name fix


>---------------------------------------------------------------

 coprs_frontend/coprs/models.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/coprs_frontend/coprs/models.py b/coprs_frontend/coprs/models.py
index 2658f7c..9e2a67b 100644
--- a/coprs_frontend/coprs/models.py
+++ b/coprs_frontend/coprs/models.py
@@ -196,6 +196,6 @@ class MockChroot(db.Model, Serializer):
 
 class CoprChroot(db.Model, Serializer):
     mock_chroot_id = db.Column(db.Integer, db.ForeignKey('mock_chroot.id'), primary_key = True)
-    mock_chroot = db.relationship('MockChroot', backref = db.backref('coprs'))
+    mock_chroot = db.relationship('MockChroot', backref = db.backref('copr_chroots'))
     copr_id = db.Column(db.Integer, db.ForeignKey('copr.id'), primary_key = True)
     copr = db.relationship('Copr', backref = db.backref('copr_chroots'))



More information about the copr-devel mailing list