def post_directory_path(instance, filename):
    """
    file will be uploaded to MEDIA_ROOT/post_<post_id>/<filename>
    :param instance:
    :param filename:
    :return:
    """
    return 'post_{0}/{1}'.format(instance.post_id, filename)