Autogenerates crashes because metadata
is a list ([Metadata()]
) instead of Metadata()
#23
Labels
bug
Something isn't working
I encountered the following after adding an Enum field to one of my models and trying to autogenerate the migration:
Turns out
metadata
is indeed a list, i.e.[Metadata()]
. If I set a breakpoint inget_declared_enums(...)
and addautogen_context.metadata = autogen_context.metadata[0]
as the first line in that function, then everything works just fine. Then the migration is created correctly.Could this be a bug or would it be more likely to be something wrong in my set up that causes this? No idea where to start looking if it's the latter though.
Versions used:
The text was updated successfully, but these errors were encountered: