#34419: Document django.contrib.admin.sites.all_sites
------------------------------------------------+------------------------
               Reporter:  Adam Johnson          |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  contrib.admin         |        Version:  dev
               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                     |
------------------------------------------------+------------------------
 #27673 added `all_sites` in django.contrib.admin.sites` as a weak set of
 all sites instnaces. It's used by system checks to loop over all current
 site instances.

 This set is also useful for custom checks and tests across all admin
 sites. For example, the parameterized test I just blogged about:
 https://adamj.eu/tech/2023/03/17/django-parameterized-tests-model-admin-
 classes/ .

 `all_sites` has been stable since 2017. I suggest that we document it, so
 that it’s a public API that such custom checks and tests can rely on.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34419>
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/01070186efeb1fa4-b9aec99e-5b28-4116-9a8f-a3259f10a7fe-000000%40eu-central-1.amazonses.com.

Reply via email to