@@ -0,0 +1,652 @@
+# -*- coding: utf-8 -*-%0Afrom django.db import models, migrations%0Afrom django.core.management import call_command%0A%0Aapp_name = 'api'%0Afixture = model_name = 'PartOfSpeech'%0A%0A%0Adef load_fixture(apps, schema_editor):%0A    call_command('loaddata', fixture, app_label=app_name)%0A%0A%0Adef unload_fixture(apps, schema_editor):%0A    %22Deleting all entries for this model%22%0A%0A    PartOfSpeech = apps.get_model(api, model_name)%0A    PartOfSpeech.objects.all().delete()%0A%0A%0Aclass Migration(migrations.Migration):%0A    dependencies = %5B%0A        (app_name, '0008_posmention'),%0A     %5D%0A%0A    operations = %5B%0A        migrations.RunPython(load_fixture, reverse_code=unload_fixture),%0A    %5D%0A

Create migration to load POS fixture data