Skip to content

Instantly share code, notes, and snippets.

View RobertoMaurizzi's full-sized avatar

Roberto Maurizzi RobertoMaurizzi

  • Catalpa International
  • General Trias, Philippines
View GitHub Profile
@RobertoMaurizzi
RobertoMaurizzi / migration_loaddata.py
Created November 16, 2023 08:28 — forked from danni/migration_loaddata.py
Django function for loading fixtures which use the current migration state of the model
import os
import logging
from django.core import serializers
LOGGER = logging.getLogger(__name__)
def load_fixture(app, fixture, ignorenonexistent=True):
"""