Skip to content
Extraits de code Groupes Projets
Valider da580a2a rédigé par Nicolas Joyard's avatar Nicolas Joyard
Parcourir les fichiers

Add chamber to group lists

parent 9a4fa745
Branches
Étiquettes
Aucune requête de fusion associée trouvée
......@@ -10,6 +10,10 @@ admin.autodiscover()
urlpatterns = [
# Project-specific overrides
url(
r'^legislature/representative/(?P<group_kind>\w+)/(?P<chamber>.+)/(?P<group>.+)/$',
views.RepresentativeList.as_view(),
),
url(
r'^legislature/representative/(?P<group_kind>\w+)/(?P<group>.+)/$',
views.RepresentativeList.as_view(),
......
......@@ -4,8 +4,12 @@
%table.table
- for group in object_list
%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
%a{'href': '{{ group.get_absolute_url }}'}w
%a{'href': '{{ group.get_absolute_url }}'}
- if group.abbreviation
={group.abbreviation}
%td
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter