mirror of https://github.com/sgoudham/Enso-Bot.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
518 B
Python
17 lines
518 B
Python
"""
|
|
South introspection rules for django-objectpermissions
|
|
"""
|
|
|
|
from django.conf import settings
|
|
from south.modelsinspector import add_ignored_fields
|
|
|
|
if 'objectpermissions' in settings.INSTALLED_APPS:
|
|
try:
|
|
from objectpermissions.models import UserPermissionRelation, GroupPermissionRelation
|
|
except ImportError:
|
|
pass
|
|
else:
|
|
add_ignored_fields(["^objectpermissions\.models\.UserPermissionRelation",
|
|
"^objectpermissions\.models\.GroupPermissionRelation"])
|
|
|