Fix #260
This commit is contained in:
parent
409bfda353
commit
59fb053283
@ -154,11 +154,11 @@ class Assignment(models.Model, SlideMixin):
|
||||
|
||||
def get_absolute_url(self, link='view'):
|
||||
if link == 'view':
|
||||
return reverse('assignment_view', args=(str(self.id)))
|
||||
return reverse('assignment_view', args=[str(self.id)])
|
||||
if link == 'edit':
|
||||
return reverse('assignment_edit', args=(str(self.id)))
|
||||
return reverse('assignment_edit', args=[str(self.id)])
|
||||
if link == 'delete':
|
||||
return reverse('assignment_delete', args=(str(self.id)))
|
||||
return reverse('assignment_delete', args=[str(self.id)])
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
Loading…
Reference in New Issue
Block a user