#34608: Migrations generates code that it can't execute
-------------------------------+--------------------------------------
     Reporter:  Michael        |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  new
    Component:  Migrations     |                  Version:  5.0
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Comment (by Michael):

 I created a minimal reproducible example:
 https://github.com/mangelozzi/djangomigrationbug

 1. Check accounts/migrations/0001_initial.py
 2. You will see this line
 bases=(plug.permpp.PermissionsMixin_factory.<locals>.PermissionsMixin,
 models.Model, accounts.modelpp.NiceNameMixin),
   - It has an error `<locals>`
 3. Delete the above migration file
 4. Run python manage.py makemigrations
 5. The file above with the error will be created by the Django.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/34608#comment:6>
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/0107018f3ed166af-0670d99f-eb24-45ec-9591-58241d4305d1-000000%40eu-central-1.amazonses.com.

Reply via email to