#27533: inspectdb command crashes when generate model classes from postgres db ----------------------------------------+------------------------ Reporter: Wei Ma | Owner: nobody Type: Bug | Status: new Component: Core (Other) | Version: 1.10 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 1 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | ----------------------------------------+------------------------ inspectdb command crashes when I try to generate model classes from postgres db.
the command I used was python manage.py inspectdb > all_models.py the error I got was: File "/xxx/env/lib/python3.5/site- packages/django/core/management/commands/inspectdb.py", line 278, in <genexpr> tup = '(' + ', '.join("'%s'" % column_to_field_name[c] for c in columns) + ')' KeyError: None -- Ticket URL: <https://code.djangoproject.com/ticket/27533> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/048.1048682aec72ff12fc1e8b48c5228257%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.