Commit 77e9893d authored by Okhin's avatar Okhin

Fixing the get_absolute_url

parent afefbf73
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment