Remove another old util

This commit is contained in:
Matthew Tretter 2013-02-12 19:45:31 -05:00
parent f5a078b68f
commit dff0182310

View file

@ -3,19 +3,10 @@ from tempfile import NamedTemporaryFile
from django.core.exceptions import ImproperlyConfigured
from django.core.files import File
from django.db.models.loading import cache
from django.utils.importlib import import_module
from pilkit.utils import *
def _get_models(apps):
models = []
for app_label in apps or []:
app = cache.get_app(app_label)
models += [m for m in cache.get_models(app)]
return models
def get_nonabstract_descendants(model):
""" Returns all non-abstract descendants of the model. """
if not model._meta.abstract: