mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-16 21:30:23 +00:00
Remove another old util
This commit is contained in:
parent
f5a078b68f
commit
dff0182310
1 changed files with 0 additions and 9 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue