#32893: Missing import statement in generated migration (NameError: name 
'models'
is not defined)
-------------------------------------+-------------------------------------
     Reporter:  Jaap Joris Vens      |                    Owner:  Abhyudai
         Type:  Bug                  |                   Status:  assigned
    Component:  Migrations           |                  Version:  dev
     Severity:  Normal               |               Resolution:
     Keywords:  migrations writer    |             Triage Stage:  Accepted
  missing import                     |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Abhyudai):

 * owner:  nobody => Abhyudai
 * status:  new => assigned
 * version:  3.2 => dev
 * easy:  1 => 0
 * stage:  Unreviewed => Accepted


Comment:

 I could reproduce the issue with `3.2.4`, `2.2.24` and the `main` branch.
 For what it's worth, the issue doesn't occur if the class `MyModel` does
 inherit from `MyMixin`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32893#comment:1>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.9c9037194bf4f4df8ff19db09d06d224%40djangoproject.com.

Reply via email to