Use detail view for experiment url in experiment serializer fixes #315
This commit is contained in:
Родитель
652d8ae40f
Коммит
f7f00e5ce5
|
@ -234,7 +234,7 @@ class Experiment(models.Model):
|
||||||
def experiment_url(self):
|
def experiment_url(self):
|
||||||
return urljoin(
|
return urljoin(
|
||||||
'https://{host}'.format(host=settings.HOSTNAME),
|
'https://{host}'.format(host=settings.HOSTNAME),
|
||||||
reverse('admin:experiments_experiment_change', args=[self.pk])
|
reverse('experiments-detail', args=[self.slug])
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Загрузка…
Ссылка в новой задаче