@classmethod
def from_context(cls, context):
    """
        Create an event from audit context

        :type context: django_audit_events.context.AuditContext
        :return: An audit event object
        :rtype: AbstractAuditEvent
        """
    obj = cls()
    obj.user = context.user
    obj.remote_addr = context.remote_addr
    obj.url = context.url
    obj.query_params = context.query_params
    obj.post_data = context.post_data
    return obj
