Skip to content

Instantly share code, notes, and snippets.

@makmac213
makmac213 / model_to_fixture.py
Last active December 11, 2015 22:48
A command tool that generates fixture data (json) based from existing Models. This can be helpful when doing testing.
"""
Mark Allan B. Meriales
A command tool that generates fixture data (json)
based from existing Models. This can be helpful when
doing testing.
"""
from django.core.management.base import BaseCommand
from django.db import models