import django
from distutils.version import StrictVersion


__version__ = "1.2.1"


try:
    dj_version = StrictVersion(django.get_version())
except:
    dj_version = StrictVersion("1.10")


if dj_version < StrictVersion("1.7"):
    from rolepermissions.loader import load_roles_and_permissions

    load_roles_and_permissions()
else:
    default_app_config = "rolepermissions.apps.RolePermissions"
import django
from distutils.version import StrictVersion

__version__ = '1.2'

dj_version = django.get_version()

if StrictVersion(dj_version) < StrictVersion('1.7'):
    from rolepermissions.loader import load_roles_and_permissions
    load_roles_and_permissions()
else:
    default_app_config = 'rolepermissions.apps.RolePermissions'
Esempio n. 3
0
 def ready(self):
     load_roles_and_permissions()