Ticket #15967: dumpdata_managed.patch

File dumpdata_managed.patch, 625 bytes (added by ijstokes, 4 years ago)

Patch to add checking of model._meta.managed to decide whether model should be dumped

  • management/commands/dumpdata.py

    103103        for model in sort_dependencies(app_list.items()):
    104104            if model in excluded_models:
    105105                continue
     106            if not model._meta.managed:
     107                continue
    106108            if not model._meta.proxy and router.allow_syncdb(using, model):
    107109                if use_base_manager:
    108110                    objects.extend(model._base_manager.using(using).all())
Back to Top