mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-16 21:30:23 +00:00
adding introspection rule for users with south
This commit is contained in:
parent
6adadafc74
commit
714ff8ae1d
1 changed files with 8 additions and 0 deletions
|
|
@ -352,3 +352,11 @@ class ProcessedImageField(models.ImageField, _ImageSpecMixin):
|
|||
name, ext = os.path.splitext(filename)
|
||||
ext = _get_suggested_extension(filename, self.format)
|
||||
return '{0}{1}'.format(name, ext)
|
||||
|
||||
|
||||
try:
|
||||
from south.modelsinspector import add_introspection_rules
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
add_introspection_rules([], [r'^imagekit\.models\.ProcessedImageField$'])
|
||||
|
|
|
|||
Loading…
Reference in a new issue