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
48d76b2d
Commit
48d76b2d
authored
Jul 13, 2011
by
stef
Browse files
[mod] optional fields in violation
parent
9884535a
Changes
1
Hide whitespace changes
Inline
Side-by-side
bt/models.py
View file @
48d76b2d
...
...
@@ -52,11 +52,11 @@ MEDIA = (
class
Violation
(
models
.
Model
):
country
=
models
.
CharField
(
max_length
=
2
,
choices
=
COUNTRIES
)
operator
=
models
.
CharField
(
max_length
=
256
)
contract
=
models
.
CharField
(
max_length
=
256
)
resource
=
models
.
CharField
(
max_length
=
20
,
choices
=
RESOURCES
)
resource_name
=
models
.
CharField
(
max_length
=
4096
)
type
=
models
.
CharField
(
max_length
=
20
,
choices
=
TYPES
)
media
=
models
.
CharField
(
max_length
=
20
,
choices
=
MEDIA
)
contract
=
models
.
CharField
(
max_length
=
256
,
blank
=
True
)
resource
=
models
.
CharField
(
max_length
=
20
,
choices
=
RESOURCES
,
blank
=
True
)
resource_name
=
models
.
CharField
(
max_length
=
4096
,
blank
=
True
)
type
=
models
.
CharField
(
max_length
=
20
,
choices
=
TYPES
,
blank
=
True
)
media
=
models
.
CharField
(
max_length
=
20
,
choices
=
MEDIA
,
blank
=
True
)
temporary
=
models
.
BooleanField
(
)
contractual
=
models
.
BooleanField
()
contract_excerpt
=
models
.
TextField
(
blank
=
True
)
...
...
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