Re: filter search from 2 models

2019-10-11 Thread sotiris moustogiannis
thanks a lot. you helped me On Friday, October 11, 2019 at 7:14:45 PM UTC+3, lemme smash wrote: > > just create custom view and add those two querysets to context. if you > want to do search by one input in both querysets, you'll need to create > custom filter as well, or just filter it in a vie

Re: filter search from 2 models

2019-10-11 Thread lemme smash
just create custom view and add those two querysets to context. if you want to do search by one input in both querysets, you'll need to create custom filter as well, or just filter it in a view by query from input On Thursday, October 10, 2019 at 1:48:52 AM UTC+3, sotiris moustogiannis wrote: >

Re: filter search from 2 models

2019-10-10 Thread sotiris moustogiannis
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 `cod

Re: filter search from 2 models

2019-10-10 Thread lemme smash
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:5