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
This is my sqlalchmey model, but it throws the below exception.
from sqlalchemy.dialects.postgresql import UUID
class Test(Base):
__tablename__ = "test"
id = Column(
UUID,
server_default=sqlalchemy.text("uuid_generate_v4()"),
primary_key=True,
info={'form_field_class': TextField}, # <-- This should have been rendered as textfiled ?
)
Form:
class ObjectForm(ModelForm):
class Meta:
model = Test
exception: wtforms_alchemy.exc.UnknownTypeException: Unknown type 'UUID()' for column 'organization_id'
This is a very common data type used while using postgres backend in sqlalchemy.
The text was updated successfully, but these errors were encountered:
berkio3x
changed the title
sqlaclhemy fcolumn of type sqlalchemy.dialects.postgresql.UUID throws exception
sqlaclhemy column of type sqlalchemy.dialects.postgresql.UUID throws exception
Oct 12, 2020
This is my sqlalchmey model, but it throws the below exception.
Form:
exception:
wtforms_alchemy.exc.UnknownTypeException: Unknown type 'UUID()' for column 'organization_id'
This is a very common data type used while using postgres backend in sqlalchemy.
The text was updated successfully, but these errors were encountered: