aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'models.py')
-rw-r--r--models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/models.py b/models.py
index ae04fb8..15f378a 100644
--- a/models.py
+++ b/models.py
@@ -31,6 +31,7 @@ class SlugModel(models.Model):
super(SlugModel, self).save()
+
class Meta:
abstract = True
@@ -179,7 +180,7 @@ class CourseManager(Manager):
.prefetch_related("rooms")
elif isinstance(obj, Room):
qs = qs.filter(rooms__in=(obj,), **criteria) \
- .prefetch_related("groups", "rooms")
+ .prefetch_related("groups")
else:
raise(TypeError, "obj must be a Group or a Room")