#30115: inspectdb, TypeError: unhashable type: 'dict'
-----------------------------------------+------------------------
Reporter: Can Sarıgöl | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-----------------------------------------+------------------------
I created a project with version 2.2a1 and run migrate after then run
inspectdb. I got this error
{{{
class DjangoSession(models.Model):
Traceback (most recent call last):
File "./manage.py", line 21, in <module>
main()
File "./manage.py", line 17, in main
execute_from_command_line(sys.argv)
File
"/Users/can/Documents/Contribute_projects/Tests/django2_2_alfa2/venv/lib/python3.7
/site-packages/django/core/management/__init__.py", line 381, in
execute_from_command_line
utility.execute()
File
"/Users/can/Documents/Contribute_projects/Tests/django2_2_alfa2/venv/lib/python3.7
/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/Users/can/Documents/Contribute_projects/Tests/django2_2_alfa2/venv/lib/python3.7
/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File
"/Users/can/Documents/Contribute_projects/Tests/django2_2_alfa2/venv/lib/python3.7
/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File
"/Users/can/Documents/Contribute_projects/Tests/django2_2_alfa2/venv/lib/python3.7
/site-packages/django/core/management/commands/inspectdb.py", line 34, in
handle
for line in self.handle_inspection(options):
File
"/Users/can/Documents/Contribute_projects/Tests/django2_2_alfa2/venv/lib/python3.7
/site-packages/django/core/management/commands/inspectdb.py", line 131, in
handle_inspection
field_type, field_params, field_notes =
self.get_field_type(connection, table_name, row)
File
"/Users/can/Documents/Contribute_projects/Tests/django2_2_alfa2/venv/lib/python3.7
/site-packages/django/core/management/commands/inspectdb.py", line 239, in
get_field_type
field_type = connection.introspection.get_field_type(row.type_code,
row)
File
"/Users/can/Documents/Contribute_projects/Tests/django2_2_alfa2/venv/lib/python3.7
/site-packages/django/db/backends/sqlite3/introspection.py", line 65, in
get_field_type
if description.pk and field_type in {'BigIntegerField',
'IntegerField'}:
TypeError: unhashable type: 'dict'
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30115>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.8d4b551287a19730be7ff8118c4532e8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.