no changeset → link should point to current user
This commit is contained in:
parent
1caa730fc4
commit
6c15d1d657
1 changed files with 2 additions and 0 deletions
|
@ -652,6 +652,8 @@ class ChangeSet(models.Model):
|
|||
|
||||
def get_absolute_url(self):
|
||||
if self.pk is None:
|
||||
if self.author:
|
||||
return reverse('editor.users.detail', kwargs={'pk': self.author_id})
|
||||
return ''
|
||||
return reverse('editor.changesets.detail', kwargs={'pk': self.pk})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue