def METHOD_NAME(self, data, view_kwargs):
    """
    method to create object before post
    :param data:
    :param view_kwargs:
    :return:
    """
    if view_kwargs.get('event_sub_topic_id'):
        event_sub_topic = safe_query_kwargs(
            EventSubTopic,
            view_kwargs,
            'event_sub_topic_id',
        )
        data['event_sub_topic_id'] = event_sub_topic.id