Thursday, October 10, 2019

Re: filter search from 2 models

generally, i want to use the 2 models(shops,appointments) in one list view in order to find available dates  for booking. I dont know the way to do this
On Thursday, October 10, 2019 at 5:36:51 PM UTC+3, lemme smash wrote:
suggestion:
it's better to post code snippets as text (i.e. use `code` markup)
about your question: what you mean by "i want to do a combination"? you what to display both filters and both lists on the same page? in that case you want to setup custom view.

On Thursday, October 10, 2019 at 1:48:52 AM UTC+3, sotiris moustogiannis wrote:
I want to do dynamic filter search from 2 different models 

i have 2 models

md1.png

md2.png



i have this filters.py file to find shops and dates


fi.png


and this shop listview

li.png



i can only show the results of shopfilter and i want to do a combination of shops and appointments model




--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/79bbb77d-16d3-4c7e-a7d5-3a5aff69d4ec%40googlegroups.com.

No comments:

Post a Comment