south.introspection_plugins.django_audit_log: 11 total statements, 0.0% covered

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

  1. """
  2. South introspection rules for django-audit-log
  3. """
  4. from django.contrib.auth.models import User
  5. from django.conf import settings
  6. from south.modelsinspector import add_introspection_rules
  7. if "audit_log" in settings.INSTALLED_APPS:
  8. try:
  9. # Try and import the field so we can see if audit_log is available
  10. from audit_log.models import fields
  11. # Make sure the `to` and `null` parameters will be ignored
  12. rules = [(
  13. (fields.LastUserField,),
  14. [],
  15. {
  16. 'to': ['rel.to', {'default': User}],
  17. 'null': ['null', {'default': True}],
  18. },
  19. )]
  20. # Add the rules for the `LastUserField`
  21. add_introspection_rules(
  22. rules,
  23. ['^audit_log\.models\.fields\.LastUserField'],
  24. )
  25. except ImportError:
  26. pass