diff --git a/apps/main/models.py b/apps/main/models.py index afd71db..4b05b63 100644 --- a/apps/main/models.py +++ b/apps/main/models.py @@ -106,4 +106,7 @@ class Configuration(PolymorphicModel): return u'[%s - %s]: %s' % (self.experiment.campaign.name, self.experiment.name, self.device.name) + def get_absolute_url(self): + from django.core.urlresolvers import reverse + return reverse('url_%s_conf' % self.device.device_type.name, args=[str(self.id)]) \ No newline at end of file diff --git a/apps/main/templates/base.html b/apps/main/templates/base.html index 4101a9a..52c0537 100644 --- a/apps/main/templates/base.html +++ b/apps/main/templates/base.html @@ -8,11 +8,11 @@ {# bootstrap_css #} - +