#21283: Migrations created in wrong directory for models defined in model 
package
----------------------------+---------------------
     Reporter:  anonymous   |      Owner:  MarkusH
         Type:  Bug         |     Status:  new
    Component:  Migrations  |    Version:  master
     Severity:  Normal      |   Keywords:
 Triage Stage:  Unreviewed  |  Has patch:  0
Easy pickings:  0           |      UI/UX:  0
----------------------------+---------------------
 Django supports to split a bunch of models into a separate Python modules
 which are placed in a models Python package. However the
 `django.db.migrations.writer.MigrationWriter` does not reflect this fact
 in its `path` property.

 The solution is easy:

 If `myapp.models` is a Python `app_module` (currently line 61) has a
 `__path__` attribute. If it is a Python module there is no such attribute.

 I'm going to write a patch and open a pull request for further discussion.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21283>
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/052.862e9e76fd051dab3cb3aafecf556262%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to