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
Hunter T Jozwiak
whats-open
Commits
1b6fb77d
Verified
Commit
1b6fb77d
authored
Jun 04, 2017
by
David Haynes
🙆
Browse files
dependency update 06-04-17
- plus a correction in Alert model doc
parent
22979385
Changes
2
Hide whitespace changes
Inline
Side-by-side
requirements/base.txt
View file @
1b6fb77d
...
...
@@ -4,3 +4,4 @@ django-cas-client==1.3.0
djangorestframework==3.6.3
django-model-utils==3.0.0
mysqlclient==1.3.10
setuptools==36.0.1
\ No newline at end of file
whats-open/api/models.py
View file @
1b6fb77d
...
...
@@ -297,13 +297,6 @@ class Alert(TimeStampedModel):
in effect, election reminder, advertising for other SRCT projects.
Alerts last for a period of time until the information is no longer dank.
alert: {
urgency_tag: [info, slight, major, emergency],
message: String(),
startDate: Date(),
endDate: Date()
}
"""
# Define string constants to represent urgency tag levels
INFO
=
'info'
...
...
@@ -311,7 +304,7 @@ class Alert(TimeStampedModel):
MAJOR
=
'major'
EMERGENCY
=
'emergency'
# Tuple that ties a urgency tag with a
n integer
representation
# Tuple that ties a urgency tag with a
string
representation
URGENCY_CHOICES
=
(
(
INFO
,
'Info'
),
(
SLIGHT
,
'Slight'
),
...
...
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