Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
roomlist
Commits
7103c53a
Commit
7103c53a
authored
Feb 21, 2015
by
Daniel W Bond
Browse files
fixed tostring
parent
61a5c123
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/housing/models.py
View file @
7103c53a
...
...
@@ -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):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment