Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Migrations: PRONOM 92 #63

Merged
merged 2 commits into from
Oct 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions fpr/migrations/0015_pronom_92.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

import os

from django.core.management import call_command
from django.db import migrations, models


def data_migration(apps, schema_editor):
fixture_file = os.path.join(os.path.dirname(__file__), 'pronom_92.json')
call_command('loaddata', fixture_file, app_label='fpr')


class Migration(migrations.Migration):

dependencies = [
('fpr', '0014_fix_fits_command'),
]

operations = [
migrations.RunPython(data_migration),
]
Loading