from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _


class SimpleTranslationAppConfig(AppConfig):
    name = "wagtail.contrib.simple_translation"
    label = "simple_translation"
    verbose_name = _("Wagtail simple translation")

from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _


class SimpleTranslationAppConfig(AppConfig):
    name = "wagtail.contrib.simple_translation"
    label = "simple_translation"
    verbose_name = _("Wagtail simple translation")
    default_auto_field = 'django.db.models.AutoField'

Set default_auto_field on simple_translation app config
Set default_auto_field on simple_translation app config

Prevents the warning "simple_translation.SimpleTranslation: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'." when running under Django 3.2.

  from django.apps import AppConfig
  from django.utils.translation import gettext_lazy as _
  
  
  class SimpleTranslationAppConfig(AppConfig):
      name = "wagtail.contrib.simple_translation"
      label = "simple_translation"
      verbose_name = _("Wagtail simple translation")
+     default_auto_field = 'django.db.models.AutoField'
  
Set default_auto_field on simple_translation app config
## Code Before:
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _


class SimpleTranslationAppConfig(AppConfig):
    name = "wagtail.contrib.simple_translation"
    label = "simple_translation"
    verbose_name = _("Wagtail simple translation")

## Instruction:
Set default_auto_field on simple_translation app config
## Code After:
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _


class SimpleTranslationAppConfig(AppConfig):
    name = "wagtail.contrib.simple_translation"
    label = "simple_translation"
    verbose_name = _("Wagtail simple translation")
    default_auto_field = 'django.db.models.AutoField'
