From f7f00e5ce5cfe7f8979ac179d08459de4fec2bb5 Mon Sep 17 00:00:00 2001 From: Jared Kerim Date: Fri, 23 Mar 2018 13:38:53 -0400 Subject: [PATCH] Use detail view for experiment url in experiment serializer fixes #315 --- app/experimenter/experiments/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/experimenter/experiments/models.py b/app/experimenter/experiments/models.py index 27f65f290..b38537e6b 100644 --- a/app/experimenter/experiments/models.py +++ b/app/experimenter/experiments/models.py @@ -234,7 +234,7 @@ class Experiment(models.Model): def experiment_url(self): return urljoin( 'https://{host}'.format(host=settings.HOSTNAME), - reverse('admin:experiments_experiment_change', args=[self.pk]) + reverse('experiments-detail', args=[self.slug]) ) @property