

def create_for_placeholder(self, placeholder, sort_order=1, language_code=None, **kwargs):
    '\n        Create a Content Item with the given parameters\n\n        If the language_code is not provided, the language code of the parent will be used.\n        This may perform an additional database query, unless\n        the :class:`~fluent_contents.models.managers.PlaceholderManager` methods were used to construct the object,\n        such as :func:`~fluent_contents.models.managers.PlaceholderManager.create_for_object`\n        or :func:`~fluent_contents.models.managers.PlaceholderManager.get_by_slot`\n        '
    if (language_code is None):
        language_code = get_parent_language_code(placeholder.parent)
    obj = self.create(placeholder=placeholder, parent_type_id=placeholder.parent_type_id, parent_id=placeholder.parent_id, sort_order=sort_order, language_code=language_code, **kwargs)
    obj.placeholder = placeholder
    parent = getattr(placeholder, '_parent_cache', None)
    if (parent is not None):
        obj.parent = parent
    return obj

dataset/ETHPy150Open edoburu/django-fluent-contents/fluent_contents/models/managers.py ContentItemManager.create_for_placeholder/original