Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
roomlist
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
roomlist
Commits
a5c462b2
Commit
a5c462b2
authored
Mar 26, 2015
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some fields now optional; renamed graduating year variable
parent
36003cfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
roomlist/accounts/models.py
roomlist/accounts/models.py
+2
-2
roomlist/housing/models.py
roomlist/housing/models.py
+1
-1
No files found.
roomlist/accounts/models.py
View file @
a5c462b2
...
@@ -89,8 +89,8 @@ class Student(TimeStampedModel):
...
@@ -89,8 +89,8 @@ class Student(TimeStampedModel):
privacy
=
models
.
CharField
(
max_length
=
100
,
choices
=
PRIVACY_CHOICES
,
default
=
FLOOR
)
privacy
=
models
.
CharField
(
max_length
=
100
,
choices
=
PRIVACY_CHOICES
,
default
=
FLOOR
)
room
=
models
.
ForeignKey
(
Room
,
null
=
True
,
blank
=
True
)
room
=
models
.
ForeignKey
(
Room
,
null
=
True
,
blank
=
True
)
clas
=
models
.
ForeignKey
(
Class
)
clas
=
models
.
ForeignKey
(
Class
,
null
=
True
,
blank
=
True
)
major
=
models
.
ForeignKey
(
'Major'
)
major
=
models
.
ForeignKey
(
'Major'
,
null
=
True
,
blank
=
True
)
# social media accounts
# social media accounts
...
...
roomlist/housing/models.py
View file @
a5c462b2
...
@@ -113,7 +113,7 @@ class Room(TimeStampedModel):
...
@@ -113,7 +113,7 @@ class Room(TimeStampedModel):
# return self.street
# return self.street
class
Class
(
TimeStampedModel
):
class
Class
(
TimeStampedModel
):
year_int
=
models
.
IntegerField
()
grad_year
=
models
.
Positive
IntegerField
()
FRESHMAN
=
'FR'
FRESHMAN
=
'FR'
SOPHOMORE
=
'SO'
SOPHOMORE
=
'SO'
JUNIOR
=
'JR'
JUNIOR
=
'JR'
...
...
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