old_contents: # -*- coding: utf-8 -*-
  
  
  from django.db import migrations
  from proso_flashcards.management.commands.load_flashcards import check_and_set_category_type
  
  
  def determine_category_type(apps, schema_editor):
      Category = apps.get_model("proso_flashcards", "Category")
      check_and_set_category_type(Category)
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('proso_flashcards', '0008_category_children_type'),
      ]
  
      operations = [
          migrations.RunPython(determine_category_type),
      ]
  
new_contents: # -*- coding: utf-8 -*-
  
  
  from django.db import migrations
  
  
  class Migration(migrations.Migration):
  
      """
      This migration is empty, since category does not longer hold any
      information about structure of data.
      """
  
      dependencies = [
          ('proso_flashcards', '0008_category_children_type'),
      ]
  
      operations = []
  
subject: make migration independent on load_flashcards command