Skip to content

Commit

Permalink
Rename descriptor and file to match Django
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwithanm committed Feb 17, 2012
1 parent 6816196 commit 677c52b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions imagekit/models/fields/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ...imagecache import get_default_image_cache_backend
from ...generators import SpecFileGenerator
from .files import ImageSpecFieldFile, ProcessedImageFieldFile
from .utils import ImageSpecFieldDescriptor, ImageKitMeta, BoundImageKitMeta
from .utils import ImageSpecFileDescriptor, ImageKitMeta, BoundImageKitMeta


class ImageSpecField(object):
Expand Down Expand Up @@ -75,7 +75,7 @@ def __init__(self, processors=None, format=None, options={},
get_default_image_cache_backend()

def contribute_to_class(self, cls, name):
setattr(cls, name, ImageSpecFieldDescriptor(self, name))
setattr(cls, name, ImageSpecFileDescriptor(self, name))
try:
ik = getattr(cls, '_ik')
except AttributeError:
Expand Down
2 changes: 1 addition & 1 deletion imagekit/models/fields/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __get__(self, instance, owner):
return ik


class ImageSpecFieldDescriptor(object):
class ImageSpecFileDescriptor(object):
def __init__(self, field, attname):
self.attname = attname
self.field = field
Expand Down

0 comments on commit 677c52b

Please sign in to comment.