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
cccf011d
Commit
cccf011d
authored
Jan 09, 2015
by
Daniel W Bond
Browse files
fixed admin pluralization
parent
880c157a
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/housing/models.py
View file @
cccf011d
...
...
@@ -50,6 +50,9 @@ class Address(TimeStampedModel):
zip_code
=
models
.
IntegerField
(
max_length
=
5
)
state
=
models
.
CharField
(
max_length
=
2
)
class
Meta
:
verbose_name_plural
=
'addresses'
def
__str__
(
self
):
# __unicode__ on Python 2
return
self
.
street
...
...
@@ -69,6 +72,9 @@ class Class(TimeStampedModel):
year_in_school
=
models
.
CharField
(
max_length
=
2
,
choices
=
YEAR_IN_SCHOOL_CHOICES
,
default
=
FRESHMAN
)
class
Meta
:
verbose_name_plural
=
'classes'
def
__str__
(
self
):
# __unicode__ on Python 2
return
str
(
self
.
year_int
)
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