mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 09:07:02 +02:00
21 lines
680 B
Python
21 lines
680 B
Python
import logging
|
|
|
|
from django.core.management.base import BaseCommand
|
|
from auditlog.context import disable_auditlog # type: ignore
|
|
|
|
|
|
from registrar.fixtures_users import UserFixture
|
|
from registrar.fixtures_applications import DomainApplicationFixture, DomainFixture
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
class Command(BaseCommand):
|
|
def handle(self, *args, **options):
|
|
# django-auditlog has some bugs with fixtures
|
|
# https://github.com/jazzband/django-auditlog/issues/17
|
|
with disable_auditlog():
|
|
UserFixture.load()
|
|
DomainApplicationFixture.load()
|
|
DomainFixture.load()
|
|
logger.info("All fixtures loaded.")
|