1 | diff -r django/core/management/commands/flush.py django_patched/core/management/commands/flush.py
|
---|
2 | 4c4
|
---|
3 | < from django.db import connections, transaction, models, DEFAULT_DB_ALIAS
|
---|
4 | ---
|
---|
5 | > from django.db import connections, router, transaction, models, DEFAULT_DB_ALIAS
|
---|
6 | 69c69,75
|
---|
7 | < emit_post_sync_signal(models.get_models(), verbosity, interactive, db)
|
---|
8 | ---
|
---|
9 | > all_models = [
|
---|
10 | > (app.__name__.split('.')[-2],
|
---|
11 | > [m for m in models.get_models(app, include_auto_created=True)
|
---|
12 | > if router.allow_syncdb(db, m)])
|
---|
13 | > for app in models.get_apps()
|
---|
14 | > ]
|
---|
15 | > emit_post_sync_signal(all_models, verbosity, interactive, db)
|
---|
16 |
|
---|