humanfromearth/django-stdimage — Issue #16: std-image breaks with south
Author: tedtieken
Created: 2011-12-17 16:42:52+00:00
State: open

per: http://code.google.com/p/django-stdimage/issues/detail?id=46

Suggest to add to __init__.py
###########################

from fields import StdImageField

try:
from south.modelsinspector import add_introspection_rules
rules = [
(
(StdImageField,),
[],
{
"size": ["size", {"default": None}],
"thumbnail_size": ["thumbnail_size", {"default": None}],
"upload_to": ["upload_to", {"default": None}],
},
)
]
add_introspection_rules(rules, ["^stdimage\.fields"])
except ImportError:
pass