From 92b11f83495bcbe7f7323d42d6ff0f5cf47aaf53 Mon Sep 17 00:00:00 2001 From: Matthew Tretter Date: Fri, 1 Feb 2013 00:30:15 -0500 Subject: [PATCH] Use imagegenerators module, not imagespecs --- imagekit/utils.py | 12 ++++++------ tests/{imagespecs.py => imagegenerators.py} | 0 tests/test_fields.py | 2 +- tests/test_generateimage_tag.py | 2 +- tests/test_thumbnail_tag.py | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) rename tests/{imagespecs.py => imagegenerators.py} (100%) diff --git a/imagekit/utils.py b/imagekit/utils.py index 2ed14de..2ac4f56 100644 --- a/imagekit/utils.py +++ b/imagekit/utils.py @@ -355,9 +355,9 @@ def get_singleton(class_path, desc): def autodiscover(): """ - Auto-discover INSTALLED_APPS imagespecs.py modules and fail silently when - not present. This forces an import on them to register any admin bits they - may want. + Auto-discover INSTALLED_APPS imagegenerators.py modules and fail silently + when not present. This forces an import on them to register any admin bits + they may want. Copied from django.contrib.admin """ @@ -370,12 +370,12 @@ def autodiscover(): mod = import_module(app) # Attempt to import the app's admin module. try: - import_module('%s.imagespecs' % app) + import_module('%s.imagegenerators' % app) except: # Decide whether to bubble up this error. If the app just - # doesn't have an imagespecs module, we can ignore the error + # doesn't have an imagegenerators module, we can ignore the error # attempting to import it, otherwise we want it to bubble up. - if module_has_submodule(mod, 'imagespecs'): + if module_has_submodule(mod, 'imagegenerators'): raise diff --git a/tests/imagespecs.py b/tests/imagegenerators.py similarity index 100% rename from tests/imagespecs.py rename to tests/imagegenerators.py diff --git a/tests/test_fields.py b/tests/test_fields.py index bce294f..df513ee 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -4,7 +4,7 @@ from django.core.files.uploadedfile import SimpleUploadedFile from imagekit import forms as ikforms from imagekit.processors import SmartCrop from nose.tools import eq_ -from . import imagespecs # noqa +from . import imagegenerators # noqa from .models import ProcessedImageFieldModel, ImageModel from .utils import get_image_file diff --git a/tests/test_generateimage_tag.py b/tests/test_generateimage_tag.py index 76ad2a5..12f8d4b 100644 --- a/tests/test_generateimage_tag.py +++ b/tests/test_generateimage_tag.py @@ -1,6 +1,6 @@ from django.template import TemplateSyntaxError from nose.tools import eq_, assert_not_in, raises, assert_not_equal -from . import imagespecs # noqa +from . import imagegenerators # noqa from .utils import render_tag, get_html_attrs diff --git a/tests/test_thumbnail_tag.py b/tests/test_thumbnail_tag.py index 5fdbbb2..235bb1b 100644 --- a/tests/test_thumbnail_tag.py +++ b/tests/test_thumbnail_tag.py @@ -1,6 +1,6 @@ from django.template import TemplateSyntaxError from nose.tools import eq_, raises, assert_not_equal -from . import imagespecs # noqa +from . import imagegenerators # noqa from .utils import render_tag, get_html_attrs