in nucleus/rna/management/commands/export_json.py [0:0]
def handle(self, *args, **options):
# start fresh
setup()
releases = Release.objects.all_as_list()
for rel in releases:
with open(os.path.join(OUTPUT_DIR, "{}.json".format(rel["slug"])), "w", encoding="utf-8") as fp:
json.dump(rel, fp, indent=2, sort_keys=True)
print(f"Exported {len(releases)} releases")