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
How to exclude or specifically include fields from having filters auto created #418
changed the title [-]How to exclude fields from having filters auto created[/-][+]How to exclude or specifically include fields from having filters auto created[/+]on Dec 27, 2024
@adiberk@andmaster-one if you look in the docstring for ORMField you'll see a param for enabling/disabling filter creation. Modifying an example usage from the same docstring:
classMyModel(Base):
id=Column(Integer(), primary_key=True)
name=Column(String)
classMyType(SQLAlchemyObjectType):
classMeta:
model=MyModelid=ORMField(create_filter=False) # disable filtering for this fieldname=ORMField(create_filter=True) # True is default behavior, but we can make it explicit
You can also change the default behavior using the create_filterparam on the Meta class
Activity
[-]How to exclude fields from having filters auto created[/-][+]How to exclude or specifically include fields from having filters auto created[/+]andmaster-one commentedon Feb 13, 2025
Have you got how to do that?
rcb4by commentedon Apr 23, 2025
@adiberk @andmaster-one if you look in the docstring for
ORMFieldyou'll see a param for enabling/disabling filter creation. Modifying an example usage from the same docstring:You can also change the default behavior using the
create_filterparam on theMetaclass