diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist/content b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist/content index cc5c96c6857d0eb54043232e77f0c822cbb682ef..27eaf681b9c89d0f7739b4c3666cd6a3ecbb6c10 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist/content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist/content @@ -47,6 +47,11 @@ Countries </a> </li> + <li> + <a href='/legislature/groups/chamber/'> + Chambers + </a> + </li> <li> <a href='/legislature/groups/group/'> Parties diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist/status_code b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist/status_code new file mode 100644 index 0000000000000000000000000000000000000000..ae4ee13c08e7628701b925b8962108bd7643bf6e --- /dev/null +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist/status_code @@ -0,0 +1 @@ +200 \ No newline at end of file diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist_searchjoly/content b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist_searchjoly/content index fe9cb0539aa3820e20a2144f4a667f8afc7a13db..aefabd8b093bf32339d7b905df77615f7cd56f3e 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist_searchjoly/content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist_searchjoly/content @@ -47,6 +47,11 @@ Countries </a> </li> + <li> + <a href='/legislature/groups/chamber/'> + Chambers + </a> + </li> <li> <a href='/legislature/groups/group/'> Parties diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist_searchjoly/status_code b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist_searchjoly/status_code new file mode 100644 index 0000000000000000000000000000000000000000..ae4ee13c08e7628701b925b8962108bd7643bf6e --- /dev/null +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist_searchjoly/status_code @@ -0,0 +1 @@ +200 \ No newline at end of file diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_displaygrid/content b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_displaygrid/content index 1c75104f6b1e3a46799a625674c3b3d3745f95ee..3e0169f1d45537828443ffa4a7600b2001b4b4c5 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_displaygrid/content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_displaygrid/content @@ -47,6 +47,11 @@ Countries </a> </li> + <li> + <a href='/legislature/groups/chamber/'> + Chambers + </a> + </li> <li> <a href='/legislature/groups/group/'> Parties diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_displaygrid/status_code b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_displaygrid/status_code new file mode 100644 index 0000000000000000000000000000000000000000..ae4ee13c08e7628701b925b8962108bd7643bf6e --- /dev/null +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_displaygrid/status_code @@ -0,0 +1 @@ +200 \ No newline at end of file diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby12_displaylist/content b/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby12_displaylist/content index 826de2e499c8112b05ee46e67abd60f4c1b8dc46..64b25913a568497ceb68544c00c6cf33a579e822 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby12_displaylist/content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby12_displaylist/content @@ -47,6 +47,11 @@ Countries </a> </li> + <li> + <a href='/legislature/groups/chamber/'> + Chambers + </a> + </li> <li> <a href='/legislature/groups/group/'> Parties diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby12_displaylist/status_code b/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby12_displaylist/status_code new file mode 100644 index 0000000000000000000000000000000000000000..ae4ee13c08e7628701b925b8962108bd7643bf6e --- /dev/null +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby12_displaylist/status_code @@ -0,0 +1 @@ +200 \ No newline at end of file diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby24_displaylist/content b/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby24_displaylist/content index dc37ecf2173b7183b791b79892f2b33f5df3691a..35194afe5fd38c16111e5339639790df9c268116 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby24_displaylist/content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby24_displaylist/content @@ -47,6 +47,11 @@ Countries </a> </li> + <li> + <a href='/legislature/groups/chamber/'> + Chambers + </a> + </li> <li> <a href='/legislature/groups/group/'> Parties diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby24_displaylist/status_code b/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby24_displaylist/status_code new file mode 100644 index 0000000000000000000000000000000000000000..ae4ee13c08e7628701b925b8962108bd7643bf6e --- /dev/null +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby24_displaylist/status_code @@ -0,0 +1 @@ +200 \ No newline at end of file diff --git a/memopol/urls.py b/memopol/urls.py index 333ffb381bf2a4a645a314e7b1041a0d60da9795..1f5931bca533f24d0ecdef41640cc76ad2eace85 100644 --- a/memopol/urls.py +++ b/memopol/urls.py @@ -11,7 +11,8 @@ admin.autodiscover() urlpatterns = [ # Project-specific overrides url( - r'^legislature/representative/(?P<group_kind>\w+)/(?P<chamber>.+)/(?P<group>.+)/$', + r'^legislature/representative/(?P<group_kind>\w+)/(?P<chamber>.+)/' + + r'(?P<group>.+)/$', views.RepresentativeList.as_view(), ), url(