Commit 7103c53a authored by Daniel W Bond's avatar Daniel W Bond
Browse files

fixed tostring

parent 61a5c123
......@@ -67,7 +67,7 @@ class Room(TimeStampedModel):
slug = AutoSlugField(populate_from='number')
def __str__(self): # __unicode__ on Python 2
return self.building.__str__()+" "+self.number.__str__()
return self.floor.building.__str__()+" "+self.number.__str__()
# buildings on campus don't have separate addresses yet
#class Address(TimeStampedModel):
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