Schedule admin should show name instead of id in task link

This commit is contained in:
Ilan Steemers
2015-07-09 09:12:26 +02:00
parent 52e49e0bc2
commit 5b3c8440ca
+1 -1
View File
@@ -134,7 +134,7 @@ class Schedule(models.Model):
url = reverse('admin:django_q_success_change', args=(task.id,))
else:
url = reverse('admin:django_q_failure_change', args=(task.id,))
return '<a href="{}">[{}]</a>'.format(url, self.task)
return '<a href="{}">[{}]</a>'.format(url, task.name)
return None
def __unicode__(self):