Skip to content

Commit

Permalink
added SLot.rooms property
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Sep 20, 2012
1 parent 17869c7 commit f30dce6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions symposion/schedule/models.py
Expand Up @@ -73,6 +73,10 @@ def content(self):
return self.content_ptr
except ObjectDoesNotExist:
return None

@property
def rooms(self):
return Room.objects.filter(pk__in=self.slotroom_set.values("room"))


class SlotRoom(models.Model):
Expand Down

0 comments on commit f30dce6

Please sign in to comment.