mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
support South for custom fields
This commit is contained in:
parent
9e17731639
commit
0e6de5ae75
1 changed files with 7 additions and 0 deletions
|
|
@ -27,3 +27,10 @@ class AutoLastModifiedField (AutoCreatedField):
|
|||
setattr(model_instance, self.attname, value)
|
||||
return value
|
||||
|
||||
# allow South to handle these fields smoothly
|
||||
try:
|
||||
from south.modelsinspector import add_introspection_rules
|
||||
add_introspection_rules(patterns=['model_utils\.fields\.'])
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue