test fixups and re-add can_access

This commit is contained in:
Wayne Witzel III
2016-03-09 15:33:12 -05:00
parent 0d0d87073e
commit 09d46f9336
5 changed files with 31 additions and 35 deletions

View File

@@ -38,7 +38,9 @@ _PythonSerializer.handle_m2m_field = _new_handle_m2m_field
# Add custom methods to User model for permissions checks.
from django.contrib.auth.models import User # noqa
from awx.main.access import * # noqa
User.add_to_class('get_queryset', get_user_queryset)
User.add_to_class('can_access', check_user_access)
# Import signal handlers only after models have been defined.
import awx.main.signals # noqa