Just using the ORM I think not
You could
1. Make a raw sql query using UNIONs for each table
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 <damjandimitrioski@gmail.com> 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+unsubscribe@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/0fc05894-fb00-40d5-b1d9-68daa5c82841%40googlegroups.com.
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+unsubscribe@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/CALn3ei0sQ1Uj-fLeORjUrCRgc-hshL1HVVyuExirB%3Do88OpFVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment