Ticket #14025: flush.patch

File flush.patch, 717 bytes (added by linovia, 14 years ago)
Line 
1diff -r django/core/management/commands/flush.py django_patched/core/management/commands/flush.py
24c4
3< from django.db import connections, transaction, models, DEFAULT_DB_ALIAS
4---
5> from django.db import connections, router, transaction, models, DEFAULT_DB_ALIAS
669c69,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
Back to Top