Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    Looks like t_rybik has created a comprehensive solution at djangosnippets.org/snippets/1933 Commented Mar 21, 2010 at 18:17
  • 1
    For searching it's better to use dedicated solutions like Haystack - it's very flexible. Commented Apr 9, 2010 at 8:52
  • 1
    Django users 1.11 and abv, see this answer - stackoverflow.com/a/42186970/6003362 Commented Feb 22, 2018 at 9:24
  • note: the question is limited to the very rare case when after merging 3 different models together you don't need extracting models again on the listing to distinguish data on types. For most cases - if distinction is expected - it will wrong interface. For the same models: see answers about union. Commented Jul 15, 2019 at 17:18