Skip to content

How to extend meta with DjangoObjectType #364

Closed
@BrianChapman

Description

@BrianChapman

I would like to extend DjangoObjectType to add some custom Meta attributes. Before 2.0 I did this through a custom DjangoObjectTypeMeta, which was ugly but effective. After 2.0 it looks like this is done with "__init_subclass_with_meta__". However DjangoObjectTypeOptions is hard-coded in "DjangoObjectType.__init_subclass_with_meta__" as "_meta = DjangoObjectTypeOptions(cls)"

Is there a clean way to extend the Meta? Could we add a options_class kwarg that defaults to DjangoObjectTypeOptions but could be overridden if needed?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions