Skip to content

Different types with the same name in the schema - Django fields with choices #185

Closed
@kozickikarol

Description

@kozickikarol

Hi,

When you try to create a model with choices field and then create a second model which inherit from the previous one, you will receive error while schema generating.

Here you have a simple project with models and basic configuration. Try to generate schema and you will get following error:

AssertionError: Found different types with the same name in the schema: PageType, PageType.

It seems that it is unable to inherit models with choices fields.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions