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).