#33938: Defining the "through" model in a many-to-many field in another app 
causes
"AttributeError: 'str' object has no attribute '_meta'" on migration
-------------------------------------+-------------------------------------
     Reporter:  bryan.af7            |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Migrations           |                  Version:  4.0
     Severity:  Normal               |               Resolution:
     Keywords:  migration many-to-   |             Triage Stage:
  many bug                           |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by mgax):

 I was able to reproduce the problem with your models. Moving the
 `FonteVariavelModel` model to the `fonte` app seems to work.

 Even if there's a bug in Django, as a workaround, why not simply move the
 model?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33938#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/01070182b7343df9-aa7e07c0-61c6-465b-90e7-c4ffe5c1e60d-000000%40eu-central-1.amazonses.com.

Reply via email to