home / django_tickets / tickets

tickets: 2901

This data as json

id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
2901 2006-10-11 16:20:57 2016-01-22 00:16:56 2022-03-06 03:27:16.290125 Accepted new contrib.admin New feature Normal newforms-admin   Enable admin log display to be restricted to a specific site The admin log currently only provides way to show changes across all sites. For a project with multiple sites, it'd be very nice to be able to tell the admin log template tag to only show changes to objects that either aren't associated with any site, or associated with the current (or some other specific) site. This requires the `django_admin_log` table to be extended with a nullable `site_id` column, which would require appropriate upgrade instructions ala: {{{ BEGIN; ALTER TABLE django_admin_log ADD site_id integer NULL REFERENCES django_site (id); COMMIT; }}} The patch adds a method called `get_for_obj` to the `SiteManager` class, which attempts to find the site a given object is related with (either through a many-to-many, or a many-to-one relation). This function is reused in the `django.views.defaults.shortcut` function, which needs the same thing. nobody Christopher Lenz <cmlenz@gmx.de> nfa-someday 0 1 1 0 0 0
Powered by Datasette · Queries took 1.457ms