How to make auth_group exist for first makemigraitons

How do I get this this to work on a new project as the first makemigrations ?

models.py

from django.db import models
from django.contrib.auth.models import Group

gp1_group, created = Group.objects.get_or_create(name='Group-1')
gp2_group, created = Group.objects.get_or_create(name='Group-2')

python manage.py makemigrations

django.db.utils.ProgrammingError: (1146, "Table 'database-name-1.auth_group' doesn't exist")

I can get this to work only on my second makemigrations and migrate.

You can create these entries as a Data migration. That’s a whole lot better than trying to do this with module-level code.