OpenEnergyPlatform / django-comparison-dashboard

Django app holding functionalities for comparing scenarios
MIT License
1 stars 0 forks source link

Implement filters #1

Closed henhuy closed 10 months ago

henhuy commented 11 months ago

This PR implements back- and frontend for filters.

henhuy commented 11 months ago

Hey @josihoppe, thanks for your implementation of forms - looks already nice! With my newest updates to dev-branch, we ca now adapt filters from real django models. So next steps would be:

After implementing above steps, I will meld your filter selection with my current graph creation!

*: Here is how I get currently used scalar datamodel: https://github.com/OpenEnergyPlatform/django-comparison-dashboard/blob/cbeaee9602ed2917b280952229de6e74da65c8c4/django_comparison_dashboard/preprocessing.py#L47 and here an implementation of dynamic fields in a form: https://github.com/rl-institut-private/digiplan/blob/b60afdefdab7bd81b4df3a4dc8e291368f8103af/digiplan/map/forms.py#L42 (you can simply add a dict containing field name as key and Field class as value to self.fields)