Advanced filtering for filtering properties in Django
Is anyone able to help me or give me some hints regarding Django? Specifically, I'm working on a real estate sales application. I'm having trouble with handling filters in the GET method as shown in the screenshot below. I've been struggling with this for over a month and still no progress! I keep deleting code because something is always not working. Basically, when selecting, for example, the 'Listing Status: Rent', there should be a reload and all properties with the 'Rent' status should be displayed. The same goes for categories, price range, etc. Furthermore, when selecting the 'Listing Status', the subsequent filters should refresh and be listed according to the displayed properties with the 'Rent' status. Meaning, when selecting the 'Rent' status, there should be a reload and all categories assigned to properties with the 'Rent' status should be displayed, and similarly for the subsequent filters. Is anyone able to help? I've been struggling with this and I'm really frustrated already 😞
properties_page_with_filters_image
The code is located at the link below. The function name is 'properties'.