Skip to content

Conversation

Stefan-ci
Copy link

I know it's possible to get the edited object in a python code but hard in templates. So having a method to query/get the edited object directly would be a benefit (easier).

# easy-audit/models.py -> CRUDEvent()
def get_edited_object(self):
    """ Return the edited object represented by this CRUD event (Like Django LogEntry does). """
    return self.content_type.get_object_for_this_type(pk=self.object_id)

I know it's possible to get the edited object in a python code but hard in templates.
So having a method to query/get the edited object directly would be a benefit (easier).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant