c3rs is a submodule of the ers_database module and has its own models.py
--
Ticket URL: <https://code.djangoproject.com/ticket/25561>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
also, ers_database has its own models.py.
Database router in use, both models.py utilize the router and use the same
app_label. Migrations work.
'python3 manage.py dumpdata ers_database' produces a zero-length file
though there is data in the database.
Database type is postgresql
--
Ticket URL: <https://code.djangoproject.com/ticket/25561#comment:1>
Comment (by timgraham):
I'm not sure this is a supported configuration of models. Can you provide
a sample app for better clarity?
Please see #25127 for a documentation request about how to define models
in multiple modules which may be relevant.
--
Ticket URL: <https://code.djangoproject.com/ticket/25561#comment:2>
Comment (by tyrdare):
I'll attempt to put together a representative case.
Thanks for the reference link.
--
Ticket URL: <https://code.djangoproject.com/ticket/25561#comment:3>
Comment (by tyrdare):
I was able to reproduce the issue in sample I ginned up, which mimics the
same db architecture and module/submodule layout as the system I
encountered the problem on. However, in the process of working with my
sample, I came to realize that the dumpdata command works with the
app_labels of the models and that using
{{{
manage.py dumpdata app_label.ModelClassName
}}}
(where the model is in the models.py of the submodule) works just fine and
that I was doing it wrong on the original system.
When I ran into difficulties I was trying to do a
{{{
manage.py dumpdata app_label.subapp_label
}}}
which dumpdata reasonably considered to be a class
and
{{{
manage.py dumpdata app_label.subapp_label.ModelClassName'
}}}
which it considered to be an app
Please close as not a bug.
--
Ticket URL: <https://code.djangoproject.com/ticket/25561#comment:4>
* status: new => closed
* resolution: => invalid
--
Ticket URL: <https://code.djangoproject.com/ticket/25561#comment:5>