aboutsummaryrefslogtreecommitdiffstats
path: root/servo/models
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-02-26 09:49:13 +0200
committerFilipp Lepalaan <filipp@mac.com>2016-02-26 09:49:13 +0200
commitcd690e453e1421a54efdcbaf6b0d18f45eed56cc (patch)
tree4eafffe223d398b0ade32487efd8a8e55c4607a6 /servo/models
parent88b90fff43a7715c7276db4578d6c4b33681f0c4 (diff)
downloadServo-cd690e453e1421a54efdcbaf6b0d18f45eed56cc.tar.gz
Servo-cd690e453e1421a54efdcbaf6b0d18f45eed56cc.tar.bz2
Servo-cd690e453e1421a54efdcbaf6b0d18f45eed56cc.zip
Fix for 'RelatedManager' object has no attribute 'active'
Diffstat (limited to 'servo/models')
-rw-r--r--servo/models/repair.py2
1 files changed, 2 insertions, 0 deletions
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)