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
La Quadrature du Net
Respect My Net
Commits
77e9893d
Commit
77e9893d
authored
Apr 05, 2016
by
Okhin
Browse files
Fixing the get_absolute_url
parent
afefbf73
Changes
1
Hide whitespace changes
Inline
Side-by-side
bt/models.py
View file @
77e9893d
...
...
@@ -113,7 +113,7 @@ class Violation(models.Model):
return
self
.
operator_ref
.
name
def
get_absolute_url
(
self
):
return
reverse
(
'violation_url'
,
args
=
(
self
.
pk
)
)
return
reverse
(
'violation_url'
,
args
=
[
self
.
pk
]
)
def
__unicode__
(
self
):
return
"#%s %s/%s"
%
(
self
.
pk
,
self
.
country
,
self
.
operator
)
...
...
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