]> git.parisson.com Git - mezzo.git/commitdiff
Add home url
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 29 Aug 2016 15:39:57 +0000 (17:39 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 29 Aug 2016 15:39:57 +0000 (17:39 +0200)
app/organization/pages/models.py
app/organization/pages/urls.py

index e409b913bc76058e58202f3f912a04758e313b24..411e4ec63533d2b2111d0996827d5afee8fd3a02 100644 (file)
@@ -52,3 +52,6 @@ class Home(Displayable):
     class Meta:
         verbose_name = _('home')
         verbose_name_plural = _("homes")
+
+    def get_absolute_url(self):
+        return reverse("organization-home", kwargs={"slug": self.slug})
index 01dc2bddecac25c1513cc25f3ec911260534fdaf..79a5ca73687691521836d3a877e86b22a7e763f4 100644 (file)
@@ -14,5 +14,6 @@ urlpatterns = [
     url("^$", HomeView.as_view(), name="home"),
     url("^dynamic-content-home-slider/$", DynamicContentHomeSliderView.as_view(), name='dynamic-content-home-slider'),
     url("^dynamic-content-home-body/$", DynamicContentHomeBodyView.as_view(), name='dynamic-content-home-body'),
+    url("^home/$", HomeView.as_view(), name='organization-home'),
 ]
 'dynamic-content-home-body'