You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CollectionItemFieldData object does not give access to custom keys / values #12
class CollectionItemFieldData(pydantic.BaseModel):
name: typing.Optional[str] = pydantic.Field(description="Name of the Item")
slug: typing.Optional[str] = pydantic.Field(
description="URL structure of the Item in your site. Note: Updates to an item slug will break all links referencing the old slug."
)
For anyone interested. Here is a temporary workaround..
# Monkey patch CollectionItemFieldData to support extra config (necessary to
# retrieve pydantic.Extra.allow reference from same pydantic reference used by
# webflow)
try:
import pydantic.v1 as pydantic
except ImportError:
import pydantic
from webflow import CollectionItemFieldData
CollectionItemFieldData.Config.extra = pydantic.Extra.allow
Reacted by jlmessenger, Sarah, Eric Chan, Viktor13, Daniel Sticker and Dipro Bhowmik
Activity
co-odw commentedon Jul 17, 2024
For anyone interested. Here is a temporary workaround..
stickerdaniel commentedon May 7, 2025
Annoying, please fix this!