From a4d93e4ad32ea87c8c8d6880418f6d47f90b9d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Mercader?= Date: Tue, 5 Apr 2011 12:36:27 +0100 Subject: [PATCH] [refactoring] Add a reference to objects from jobs --- ckanext/harvest/model/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ckanext/harvest/model/__init__.py b/ckanext/harvest/model/__init__.py index cb3998d..bc84422 100644 --- a/ckanext/harvest/model/__init__.py +++ b/ckanext/harvest/model/__init__.py @@ -162,6 +162,10 @@ mapper( Package, backref='harvest_objects', ), + 'job': relation( + HarvestJob, + backref=u'objects', + ), }, )