when I have a field in a serializer like this:
preferred_language = serializers.PrimaryKeyRelatedField(
queryset=Language.objects.all(), required=False
)
and I try to run migrations, it gives me an error like this: django.db.utils.OperationalError: no such table: account_language.
I guess it tries to generate the type before it can run the migrations properly. It only works once I remove the ts_interface() tag from the serializer.
when I have a field in a serializer like this:
and I try to run migrations, it gives me an error like this:
django.db.utils.OperationalError: no such table: account_language.I guess it tries to generate the type before it can run the migrations properly. It only works once I remove the
ts_interface()tag from the serializer.