From cd690e453e1421a54efdcbaf6b0d18f45eed56cc Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 26 Feb 2016 09:49:13 +0200 Subject: Fix for 'RelatedManager' object has no attribute 'active' --- servo/models/repair.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'servo/models') diff --git a/servo/models/repair.py b/servo/models/repair.py index dad1fe1..c9bb952 100644 --- a/servo/models/repair.py +++ b/servo/models/repair.py @@ -88,6 +88,8 @@ class ActiveManager(models.Manager): """ GSX repairs that have been submitted, and not marked complete """ + use_for_related_fields = True + def active(self, **kwargs): return self.filter(completed_at=None, **kwargs).exclude(submitted_at=None) -- cgit v1.2.3