Skip to content
GitLab
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
8d2081e2
Commit
8d2081e2
authored
Jul 04, 2011
by
stef
Browse files
[enh] optional fields in violation
parent
a8046fdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
bt/models.py
View file @
8d2081e2
...
...
@@ -59,9 +59,9 @@ class Violation(models.Model):
media
=
models
.
CharField
(
max_length
=
20
,
choices
=
MEDIA
)
temporary
=
models
.
BooleanField
(
)
contractual
=
models
.
BooleanField
()
contract_excerpt
=
models
.
TextField
()
contract_excerpt
=
models
.
TextField
(
blank
=
True
)
loophole
=
models
.
BooleanField
()
activationid
=
models
.
CharField
(
max_length
=
128
)
activationid
=
models
.
CharField
(
max_length
=
128
,
blank
=
True
)
def
confirmations
(
self
):
return
self
.
confirmation_set
.
filter
(
key
=
''
).
count
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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