django-eav2 icon indicating copy to clipboard operation
django-eav2 copied to clipboard

Filter Form Frontend

Open Bastilla123 opened this issue 4 years ago • 1 comments

Provide a general summary of the issue in the title above.

Detailed Description

I want to use in frontend a filter form from EAV2 Attributes. So in backend all dynamic fields from a model must collect. Then a form is create fields dependend from model type. Then i can include this in my listview template. Then user fills fields and submit it to backend. Backend filter after this eav2 attributes and render result to frontend. It exists a similar package for normal fields with name django-filter that is often use...

Context

I have a django oscar implementation with t-shirts, jeans and now this products have dynamic attributes from eav2 and i want filter this dynamic attributes. Every shop can filter for size, color and further more. But size and color i only need for textiles. When i also have a juwellery then i need another dynamic attributes.

Django-Filter have 65k user and 165 contributers in github so i think many developer want this feature.

Possible Implementation

Implementation as Django-Filter is a good example how it can work also with EAV2...

Bastilla123 avatar Sep 07 '21 14:09 Bastilla123

Hi @Bastilla123 - There seems to be multiple asks in your note. Could you perhaps clarify what you're trying to accomplish?

The asks I see are:

  1. Populate a form with eav2 Attribute objects that can be passed to a list.ListView
  2. Filter Attribute objects for a form
  3. Add django-filter support in eav2

Sorry if I'm missing something!

Dresdn avatar Oct 20 '21 22:10 Dresdn