Skip to content

Instantly share code, notes, and snippets.

View jheerman's full-sized avatar

John Heerman jheerman

View GitHub Profile
@czpython
czpython / serialize_filer.py
Last active March 3, 2024 14:22
create fixture of django filer
from django.core import serializers
from django.db.models import get_app, get_models
from django.db.models.query import QuerySet
def export_filer_models(output_file=None):
"""
Exports filer models to output_file.
"""
app = get_app('filer')