#27164: Database routers examples could be more realistic
-------------------------------------+-------------------------------------
     Reporter:  michaeloconnor       |                    Owner:  Caio
         Type:                       |  Ariede
  Cleanup/optimization               |                   Status:  assigned
    Component:  Documentation        |                  Version:  1.8
     Severity:  Normal               |               Resolution:
     Keywords:  multiple databases   |             Triage Stage:  Accepted
  docs                               |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Caio Ariede):

 * status:  new => assigned
 * owner:  nobody => Caio Ariede


Comment:

 I can see that the `AuthRouter` would not work in the
 [https://docs.djangoproject.com/en/3.0/topics/db/multi-db/#an-example
 provided example], given that a query for `Permission` that
 
[https://github.com/django/django/blob/stable/3.0.x/django/contrib/auth/models.py#L57-L61
 has a relationship] with `ContentType` would not work.

 It is not clear to me how to make that example work, given that, moving
 `ContentType` to `auth_db` would create other restrictions for models
 using `ContentType`.

 Should we just replace this example with something else? Am I missing
 something?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/27164#comment:6>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.b926f1af47a249f2c2f0d517efd0e26d%40djangoproject.com.

Reply via email to