#27936: ASCII Art for docs "Spanning multi-valued relationships"
------------------------------------------+------------------------
               Reporter:  Thomas Güttler  |          Owner:  nobody
                   Type:  Uncategorized   |         Status:  new
              Component:  Documentation   |        Version:  1.10
               Severity:  Normal          |       Keywords:
           Triage Stage:  Unreviewed      |      Has patch:  0
    Needs documentation:  0               |    Needs tests:  0
Patch needs improvement:  0               |  Easy pickings:  0
                  UI/UX:  0               |
------------------------------------------+------------------------
 First of all: Thank you for the great docs.
 Since it took some time until we got the difference:

  {{{
 filter(entry__headline__contains='Lennon').filter(entry__pub_date__year=2008)

  vs

 filter(entry__headline__contains='Lennon', entry__pub_date__year=2008)
 }}}

 The docs are great:

 https://docs.djangoproject.com/en/dev/topics/db/queries/#spanning-multi-
 valued-relationships

 But maybe the ascii art below helps to understand it better?

 What do you think?

 {{{
                       +--------------------+
                       |           Lennon   |
                     - |  Entry 1           |
 +---------------+  /  |           2008     |
 |               | /   +--------------------+
 | Blog 1        |/
 filter(entry__headline__contains='Lennon', entry__pub_date__year=2008)
 |               |\                               -
 +---------------+ \ -
                    \  +--------------------+
                     \ |                    |
                      -|  Entry 2           |
                       |                    |
                       +--------------------+


                       +--------------------+
                       |           Lennon   |
                     - |  Entry 3           |
 +---------------+  /  |                    |
 |               | /   +--------------------+
 | Blog 2        |/
 filter(entry__headline__contains='Lennon').filter(entry__pub_date__year=2008)
 |               |\
 +---------------+ \ -
                    \  +--------------------+
                     \ |           2008     |
                      -|  Entry 4           |
                       |                    |
                       +--------------------+
 }}}

 Ascii Art: https://textik.com/#100375b764993664

 The ascii art could get improved, I wanted to ask you first before
 polishing it.

--
Ticket URL: <https://code.djangoproject.com/ticket/27936>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.02c91d8541077746260fce2b54974376%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to