Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
piks3l
Respect My Net
Commits
f8e57f39
Commit
f8e57f39
authored
Apr 30, 2011
by
stef
Browse files
[enh] full ids for enums
parent
565bf022
Changes
1
Show whitespace changes
Inline
Side-by-side
bt/models.py
View file @
f8e57f39
...
...
@@ -32,20 +32,20 @@ COUNTRIES = (
)
RESOURCES
=
(
(
'
1
'
,
_
(
'port'
)),
(
'
2
'
,
_
(
'protocol'
)),
(
'
3
'
,
_
(
'service'
)),
(
'
4
'
,
_
(
'site'
)),
(
'
5
'
,
_
(
'user'
)),
(
'
6
'
,
_
(
'ip'
)),
(
'
port
'
,
_
(
'port'
)),
(
'
protocol
'
,
_
(
'protocol'
)),
(
'
service
'
,
_
(
'service'
)),
(
'
site
'
,
_
(
'site'
)),
(
'
user
'
,
_
(
'user'
)),
(
'
ip
'
,
_
(
'ip'
)),
)
TYPES
=
(
(
'
1
'
,
_
(
'Blocking'
)),
(
'
2
'
,
_
(
'Throttling'
)),
(
'
blocking
'
,
_
(
'Blocking'
)),
(
'
throttling
'
,
_
(
'Throttling'
)),
)
MEDIA
=
(
(
'
1
'
,
_
(
'Fixed'
)),
(
'
2
'
,
_
(
'Mobile'
)),
(
'
fixed
'
,
_
(
'Fixed'
)),
(
'
mobile
'
,
_
(
'Mobile'
)),
)
class
Attachment
(
models
.
Model
):
...
...
Write
Preview
Supports
Markdown
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