From 2ea25cfd5a94f59a5840692e57b5784d21f2545d Mon Sep 17 00:00:00 2001 From: Mira Date: Thu, 19 Dec 2024 17:38:05 +0100 Subject: [PATCH] Apply suggestions from code review --- doc/development/api/plugins.rst | 2 +- doc/development/implementation/logging.rst | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/doc/development/api/plugins.rst b/doc/development/api/plugins.rst index b3cc074a8..022324683 100644 --- a/doc/development/api/plugins.rst +++ b/doc/development/api/plugins.rst @@ -154,7 +154,7 @@ in the ``installed`` method: Note that ``installed`` will *not* be called if the plugin is indirectly activated for an event because the event is created with settings copied from another event. -.. _`Registries`: +.. _`registries`: Registries ---------- diff --git a/doc/development/implementation/logging.rst b/doc/development/implementation/logging.rst index ba195b757..bc5bc9eff 100644 --- a/doc/development/implementation/logging.rst +++ b/doc/development/implementation/logging.rst @@ -145,15 +145,14 @@ To show more sophisticated message strings, e.g. varying the message depending o .. automethod:: pretix.base.logentrytypes.LogEntryType.display -If your new model object does not belong to an `Event`, you need to implement +If your new model object does not belong to an `Event`, you need to inherit directly from ``LogEntryType`` instead +of ``EventLogEntryType``, providing your own implementation of ``get_object_link_info`` if object links should be +displayed. -meow +.. autoclass:: pretix.base.logentrytypes.LogEntryType + :members: get_object_link_info -.. autoclass:: pretix.base.logentrytypes.Registry - :members: new -.. autoclass:: pretix.base.logentrytypes.LogEntryTypeRegistry - :members: new, new_from_dict Sending notifications ---------------------