Skip to content

Instantly share code, notes, and snippets.

@rvause
rvause / migration_manifest.py
Last active June 13, 2019 18:21 — forked from alvinchow86/migration_manifest.py
django-tips-blog-migration-manifest
def handle(self, *app_labels, **options):
# Generate a migrations manifest with latest migration on each app
super(Command, self).handle(*app_labels, **options)
loader = MigrationLoader(None, ignore_no_migrations=True)
with open("latest_migrations.manifest", 'w') as f:
f.write("\n".join(sorted(f"{a}: {m}" for a, m in loader.graph.leaf_nodes())))
outlook.com
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
150ml.com
15meg4free.com