This commit is contained in:
Norman Jäckel 2012-06-28 01:14:51 +02:00
parent 409bfda353
commit 59fb053283

View File

@ -154,11 +154,11 @@ class Assignment(models.Model, SlideMixin):
def get_absolute_url(self, link='view'): def get_absolute_url(self, link='view'):
if link == 'view': if link == 'view':
return reverse('assignment_view', args=(str(self.id))) return reverse('assignment_view', args=[str(self.id)])
if link == 'edit': if link == 'edit':
return reverse('assignment_edit', args=(str(self.id))) return reverse('assignment_edit', args=[str(self.id)])
if link == 'delete': if link == 'delete':
return reverse('assignment_delete', args=(str(self.id))) return reverse('assignment_delete', args=[str(self.id)])
def __unicode__(self): def __unicode__(self):
return self.name return self.name