from pathlib import Path

__version__ = (Path(__file__).parent / "VERSION").open().read().strip()

default_app_config = 'modeltranslation.apps.ModeltranslationConfig'

from pathlib import Path
from django import VERSION as _django_version

__version__ = (Path(__file__).parent / "VERSION").open().read().strip()

if _django_version < (3, 2):
    default_app_config = 'modeltranslation.apps.ModeltranslationConfig'

Add django version check for default_app_config
fix: Add django version check for default_app_config

  from pathlib import Path
+ from django import VERSION as _django_version
  
  __version__ = (Path(__file__).parent / "VERSION").open().read().strip()
  
+ if _django_version < (3, 2):
- default_app_config = 'modeltranslation.apps.ModeltranslationConfig'
+     default_app_config = 'modeltranslation.apps.ModeltranslationConfig'
  
Add django version check for default_app_config
## Code Before:
from pathlib import Path

__version__ = (Path(__file__).parent / "VERSION").open().read().strip()

default_app_config = 'modeltranslation.apps.ModeltranslationConfig'

## Instruction:
Add django version check for default_app_config
## Code After:
from pathlib import Path
from django import VERSION as _django_version

__version__ = (Path(__file__).parent / "VERSION").open().read().strip()

if _django_version < (3, 2):
    default_app_config = 'modeltranslation.apps.ModeltranslationConfig'
