]> git.parisson.com Git - mezzo.git/commitdiff
Fix person url
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 9 Sep 2016 13:27:53 +0000 (15:27 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 9 Sep 2016 13:27:53 +0000 (15:27 +0200)
app/organization/network/models.py
app/organization/network/urls.py

index 70e5923f8f377bf3999ec4575b6302ee59faf465..7206ec98178c27b26c0fbc5e561572873ca69929 100644 (file)
@@ -178,8 +178,8 @@ class Person(Displayable, AdminThumbMixin):
     def __str__(self):
         return ' '.join((self.first_name, self.last_name))
 
-    def get_absolute_url(self):
-    #     return reverse("festival-artist-detail", kwargs={'slug': self.slug})
+    def get_absolute_url(self):
+        return reverse("organization-network-person-detail", kwargs={'slug': self.slug})
 
     def set_names(self):
         names = self.title.split(' ')
index bd52ca921d19cbd69acc0f19280879b197864870..97281b13402f43f5f5bb29ec1e11688853fb841e 100644 (file)
@@ -12,4 +12,5 @@ from organization.network.views import *
 
 urlpatterns = [
     url(r'^(?P<department>.*)/teams/$', TeamListView.as_view(), name="organization-network-team-list"),
+    url(r'^person/(?P<slug>.*)/$', PersonDetailView.as_view(), name="organization-network-person-detail"),
 ]