political-memory / political_memory

WARNING: this repository has now moved to https://git.laquadrature.net/memopol/memopol
https://memopol.lqdn.fr/
12 stars 2 forks source link

Add filters for representatives #92

Closed njoyard closed 8 years ago

njoyard commented 8 years ago

This PR adds a filter form that uses django-filters on the representative list with the following criteria:

The group URLs (like /legislature/representatives/committee/European Parliament/Committee on Defense whatever) are now 301-redirected to an URL with querystring parameters in order to pre-fill the filter form.

TODO:

Preview:

preview

codecov-io commented 8 years ago

Current coverage is 90.30%

Merging #92 into master will increase coverage by 0.58%

@@             master        #92   diff @@
==========================================
  Files            44         46     +2   
  Lines           837        908    +71   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            751        820    +69   
- Misses           86         88     +2   
  Partials          0          0          

Powered by Codecov. Last updated by 0cea299...22d2782