'before get method
:param view_kwargs:
:return:'

def before_get_object(self, view_kwargs):

    event = None
    if view_kwargs.get('event_id'):
        event = safe_query(self, Event, 'id', view_kwargs['event_id'], 'event_id')
    elif view_kwargs.get('event_identifier'):
        event = safe_query(self, Event, 'identifier', view_kwargs['event_identifier'], 'event_identifier')
    if event:
        custom_form = safe_query(self, CustomForms, 'event_id', event.id, 'event_id')
        view_kwargs['id'] = custom_form.id
