def METHOD_NAME(self, pk):
    """Get an event from pk uuid or strid."""
    try:
        UUID(pk, version=4)
        return get_object_or_404(self.queryset, id=pk)
    except ValueError:
        return get_object_or_404(self.queryset, str_id=pk)