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
7050f63b
Commit
7050f63b
authored
Jan 16, 2015
by
Daniel W Bond
Browse files
removed bed specifics from room model, variable for students instead
parent
59ddee7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/housing/models.py
View file @
7050f63b
...
...
@@ -2,7 +2,7 @@ from django.db import models
from
autoslug
import
AutoSlugField
from
model_utils.models
import
TimeStampedModel
from
django.contrib.auth
.models
import
User
from
accounts
.models
import
Student
from
localflavor.us.models
import
USStateField
...
...
@@ -46,10 +46,7 @@ class Building(TimeStampedModel):
class
Room
(
TimeStampedModel
):
number
=
models
.
IntegerField
()
floor
=
models
.
IntegerField
()
bedA
=
models
.
CharField
(
max_length
=
80
)
bedB
=
models
.
CharField
(
max_length
=
80
,
blank
=
True
)
bedC
=
models
.
CharField
(
max_length
=
80
,
blank
=
True
)
bedD
=
models
.
CharField
(
max_length
=
80
,
blank
=
True
)
students
=
models
.
ManyToManyField
(
Student
)
building
=
models
.
ForeignKey
(
'Building'
)
slug
=
AutoSlugField
(
populate_from
=
'number'
,
unique
=
True
)
...
...
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