redhat-beyond / givit

0 stars 5 forks source link

implement filters in coordinator page #125

Closed matan2455 closed 4 years ago

matan2455 commented 4 years ago
  1. Add filter form to coordinator template.
  2. Views page:
    • Create a new function - 'get_data_query_sets':

      Returns filtered query sets based on filter values in the GET request

    • Create a new function 'get_filters_as_lists' :

      Extracts the values from the tuple lists REGION_CHOICES & ITEM_CHOICES into String lists. This allows better rendering of the values in the filter select buttons.

  3. Fix a small typo in coordinator/models/close_related_request

Fixes #61

liorsicd commented 4 years ago

@matan2455 you have some linting warnings, check the CI log. use those settings in your VScode: https://beyond-io.slack.com/archives/C019JPVPBNG/p1600252402089800?thread_ts=1600195301.089300&cid=C019JPVPBNG