mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
Add South compatibility for AuditlogHistoryField
Untested, suggested solution per issue #7
This commit is contained in:
parent
e2bf3fe3dc
commit
d778bb3a9e
1 changed files with 7 additions and 0 deletions
|
|
@ -177,3 +177,10 @@ class AuditlogHistoryField(generic.GenericRelation):
|
|||
|
||||
kwargs['content_type_field'] = 'content_type'
|
||||
super(AuditlogHistoryField, self).__init__(**kwargs)
|
||||
|
||||
# South compatibility for AuditlogHistoryField
|
||||
try:
|
||||
from south.modelsinspector import add_introspection_rules
|
||||
add_introspection_rules([], ["^southtut\.fields\.UpperCaseField"])
|
||||
except ImportError:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Reference in a new issue