right way to create a django data migration that creates a group?
问题 I would like to create data migrations that create Permissions and Groups, so that my other developers can just run the migrations and get everything set up. I was able to create the migrations and run them just fine, but now I'm getting an error when running my tests. But if I do this: from django.contrib.auth.models import Group def add_operations_group(apps, schema_editor): Group.objects.get_or_create(name='operations') I get: django.db.utils.OperationalError: no such table: auth_group If