Hi Jacob.

Can I ask you to explain your use-case a little more please?
As I understand it, separate admin sites may register different models, but
I'm only going to see the History for instances that are visible to the
current admin no?
Maybe you mean the Recent actions > My actions bit of the index page? (I
didn't check but, if not already, could that list be filtered by the
content type of registered models for the current admin? 🤔)

C.

On Tue, 24 Jan 2023 at 14:35, Jacob Rief <jacob.r...@gmail.com> wrote:

> If someone uses two or more instances of the Django Admin interface,
> the sidebar on the right containing the "Recent actions", shares the same
> information for all instances of the Django Admin interface.
> This is because the model LogEntry is a singleton and shared across all
> instances of the Django Admin interface.
> As a consequence this may be confusing to some users, since they might
> expect that the log entries are bound to the current user interface.
>
> I had a look at the code and although it is possible to create separate
> entries
> for those logs, this is really complicated and requires a lot of work.
> Therefore
> I wanted to ask, if it would make sense to allow each instance of a Django
> Admin to specify its own model used to log entries? The default would of
> course be to fall back on the current behaviour.
>
> I have some ideas on how to achieve this. An instantiation
> of a Django Admin could specify its own model similar to LogEntry
> which itself should inherit from a class named AbstractLogEntry (which
> doesn't yet exist). This would also allow integrators to extend this class
> with
> additional columns for extra log entries.
>
> – Jacob
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/38c055d3-58ef-4a73-9784-be6877e31b2cn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/38c055d3-58ef-4a73-9784-be6877e31b2cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAJwKpyS17Kx8FaHx1CG1GE2wYpgqSq89u%3DLxeqth23vJkRPPrg%40mail.gmail.com.
  • Mul... Jacob Rief
    • ... Carlton Gibson
      • ... Jacob Rief
        • ... Carlton Gibson
          • ... Jacob Rief
            • ... Carlton Gibson
              • ... 'Adam Johnson' via Django developers (Contributions to Django itself)
                • ... Jacob Rief

Reply via email to