Can I override the search button, so it will call the custom raw query ? And if yes, can you show me how to override it, please ?
On Friday, December 12, 2014 5:41:08 PM UTC+1, Vijay Khemlani wrote: > > Just using the ORM I think not > > You could > > 1. Make a raw sql query using UNIONs for each table > > 2. Make a common superclass for the models with th search field > > 3. Use an external search engine (elasticsearch, etc) and store the > entries for the required models under the same index. > > Finally, you could just query each model separately > > On Fri, Dec 12, 2014 at 12:09 PM, Damjan Dimitrioski < > damjandi...@gmail.com <javascript:>> wrote: >> >> Hi, >> >> Is there a way to make a model that links several db tables in one model, >> so that can be used in a change list view ? >> Most importantly, I need to be able to use the search field, can this be >> accomplished ? >> >> Regards. >> >> -- >> 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...@googlegroups.com <javascript:>. >> To post to this group, send email to django...@googlegroups.com >> <javascript:>. >> Visit this group at http://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/0fc05894-fb00-40d5-b1d9-68daa5c82841%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/0fc05894-fb00-40d5-b1d9-68daa5c82841%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7ab4444e-ca5c-4823-82f7-6dc0ebdd19d8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.