Generated: Wed 2013-03-13 10:33 CET
Source file: /media/Envs/Envs/filer-gallery/lib/python2.7/site-packages/south/introspection_plugins/django_audit_log.py
Stats: 0 executed, 6 missed, 5 excluded, 19 ignored
"""South introspection rules for django-audit-log"""from django.contrib.auth.models import Userfrom django.conf import settingsfrom south.modelsinspector import add_introspection_rulesif "audit_log" in settings.INSTALLED_APPS: try: # Try and import the field so we can see if audit_log is available from audit_log.models import fields # Make sure the `to` and `null` parameters will be ignored rules = [( (fields.LastUserField,), [], { 'to': ['rel.to', {'default': User}], 'null': ['null', {'default': True}], }, )] # Add the rules for the `LastUserField` add_introspection_rules( rules, ['^audit_log\.models\.fields\.LastUserField'], ) except ImportError: pass