inspectdb: FieldInfo.__new__() missing 1 required positional argument: 'collation'

Hi there,

I have a multitenant Django app on a PostgreSQL backend.
When I inspect the database with the following command:
python manage.py inspectdb

it throws an error on the public schema:

Unable to inspect table 'django_content_type'
The error was: FieldInfo.__new__() missing 1 required positional argument: 'collation'
Unable to inspect table 'django_migrations'
The error was: FieldInfo.__new__() missing 1 required positional argument: 'collation'
Unable to inspect table 'tenants_domain'
The error was: FieldInfo.__new__() missing 1 required positional argument: 'collation'
Unable to inspect table 'tenants_tenant'
The error was: FieldInfo.__new__() missing 1 required positional argument: 'collation'

On all the tenant schema’s there is no issue.

We are using:

Python 3.10
PostgreSQL 10.18
Django 3.2.9
Django-tenants 3.3.4

Does anyone have a suggestion?

Thanks in advance.

BR

You’re encountering this bug: Postgres backend introspection seems to be out of date · Issue #663 · django-tenants/django-tenants · GitHub

Normally you’ll get a better, faster answer by checking issue trackers for packages you’re using than by posting in the forums.

thanks Adam, I will do that!