Commit 8d900afa authored by Daniel W Bond's avatar Daniel W Bond
Browse files

this filter is redundant

parent b17de2c7
......@@ -77,7 +77,7 @@ class StudentQuerySet(models.query.QuerySet):
elif isinstance(housing, Floor):
rooms = Room.objects.filter(floor=housing).order_by('number')
elif isinstance(housing, Building):
rooms = Room.objects.filter(floor__building=housing).order_by('floor__building__name', 'number')
rooms = Room.objects.filter(floor__building=housing).order_by('number')
else:
raise TypeError("'housing' arg must be Building, Floor, or Room")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment