[Django] #34526: issue in admin with sites

5 views
Skip to first unread message

Django

unread,
Apr 29, 2023, 9:34:58 AM4/29/23
to django-...@googlegroups.com
#34526: issue in admin with sites
----------------------------------------------+------------------------
Reporter: Mohamed El-Kalioby | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 4.2
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 |
----------------------------------------------+------------------------
Lets assume that there is a client model which is using the current_site
manager so that each site can manage their own clients. But what happens
that the admin app always show the clients that belongs to SITE_ID
regardless of the domain the admin accessed from.

Affected Module: contrib.admin

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

Django

unread,
Apr 29, 2023, 9:41:32 AM4/29/23
to django-...@googlegroups.com
#34526: issue in admin with sites
------------------------------------+--------------------------------------

Reporter: Mohamed El-Kalioby | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 4.2
Severity: Normal | Resolution:
Keywords: admin sites | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------------+--------------------------------------
Changes (by Mohamed El-Kalioby):

* keywords: => admin sites
* component: Uncategorized => contrib.admin


Old description:

> Lets assume that there is a client model which is using the current_site
> manager so that each site can manage their own clients. But what happens
> that the admin app always show the clients that belongs to SITE_ID
> regardless of the domain the admin accessed from.
>
> Affected Module: contrib.admin

New description:

Lets assume that there is a client model which is using the current_site
manager so that each site can manage their own clients. But what happens
that the admin app always show the clients that belongs to SITE_ID
regardless of the domain the admin accessed from.

Affected Module: contrib.admin

Solution tried: setting the default_manager for client model.

--

--
Ticket URL: <https://code.djangoproject.com/ticket/34526#comment:1>

Django

unread,
Apr 29, 2023, 9:58:11 AM4/29/23
to django-...@googlegroups.com
#34526: issue in admin with sites
------------------------------------+--------------------------------------
Reporter: Mohamed El-Kalioby | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 4.2
Severity: Normal | Resolution: wontfix

Keywords: admin sites | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------------+--------------------------------------
Changes (by David Sanders):

* status: new => closed
* resolution: => wontfix


Comment:

Hi,

Thanks for the report, though what you've described is expected behaviour.

If you'd like contrib.admin to access all clients then you'd need to use
the default manager for that. If you disagree and believe that behaviour
needs to change then it's best to start a discussion on the Django forum
where you'll encounter a larger audience from which a decision can be made
to update Django:
https://code.djangoproject.com/wiki/DevelopersMailingList

If you need assistance in updating your admin setup you can get support in
the following areas: https://www.djangoproject.com/community/

Thanks!

--
Ticket URL: <https://code.djangoproject.com/ticket/34526#comment:2>

Reply all
Reply to author
Forward
0 new messages