I'm sure the database config is correct.
1. when I run: python manage.py inspectdb, it come out issues like this:
{{{
# Unable to inspect table 'AllowList'
# The error was: __new__() missing 1 required positional argument:
'collation'
}}}
ps: when I change django version to 3.1x or 2.x, inspectdb can produce
model.
2. when I use
{{{
filetypes =
Uploadfiletypes.objects.filter(status=True).order_by('filetype')
}}}
it produce this issue:
{{{
('42000', "[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL
Server]An expression of non-boolean type specified in a context where a
condition is expected, near 'ORDER'. (4145) (SQLExecDirectW)")
}}}
I'm sure status is a boolean field, and True is a boolean type value. when
I change the django version to 2.x, it don't have this issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/32767>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
Comment:
This is not an issue in Django but in `django-mssql-backend`. Moreover
`django-mssql-backend` doesn't officially support Django 3.2.
--
Ticket URL: <https://code.djangoproject.com/ticket/32767#comment:1>