Commit da580a2a authored by Nicolas Joyard's avatar Nicolas Joyard

Add chamber to group lists

parent 9a4fa745
...@@ -10,6 +10,10 @@ admin.autodiscover() ...@@ -10,6 +10,10 @@ admin.autodiscover()
urlpatterns = [ urlpatterns = [
# Project-specific overrides # Project-specific overrides
url(
r'^legislature/representative/(?P<group_kind>\w+)/(?P<chamber>.+)/(?P<group>.+)/$',
views.RepresentativeList.as_view(),
),
url( url(
r'^legislature/representative/(?P<group_kind>\w+)/(?P<group>.+)/$', r'^legislature/representative/(?P<group_kind>\w+)/(?P<group>.+)/$',
views.RepresentativeList.as_view(), views.RepresentativeList.as_view(),
......
...@@ -4,8 +4,12 @@ ...@@ -4,8 +4,12 @@
%table.table %table.table
- for group in object_list - for group in object_list
%tr %tr
- if group.kind != 'country' and group.kind != 'chamber'
%td
%a{'href': "{% url 'representatives:representative-list' group_kind='chamber' group=group.chamber.name %}"}= group.chamber.name
%td %td
%a{'href': '{{ group.get_absolute_url }}'}w %a{'href': '{{ group.get_absolute_url }}'}
- if group.abbreviation - if group.abbreviation
={group.abbreviation} ={group.abbreviation}
%td %td
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment