From 1bf4fdbff1bc6bab16f7c1a6b190edef2e8318a8 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Fri, 29 Apr 2016 16:57:51 -0400 Subject: [PATCH] Fixed up the _old_access.py UserAccess queryset --- awx/main/migrations/_old_access.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/main/migrations/_old_access.py b/awx/main/migrations/_old_access.py index 15b0d4f391..bbdac5a4c3 100644 --- a/awx/main/migrations/_old_access.py +++ b/awx/main/migrations/_old_access.py @@ -206,9 +206,9 @@ class UserAccess(BaseAccess): return qs return qs.filter( Q(pk=self.user.pk) | - Q(organizations__in=self.user.deprecated_admin_of_organizations) | - Q(organizations__in=self.user.deprecated_organizations) | - Q(deprecated_teams__in=self.user.deprecated_teams) + Q(deprecated_organizations__in=self.user.deprecated_admin_of_organizations.all()) | + Q(deprecated_organizations__in=self.user.deprecated_organizations.all()) | + Q(deprecated_teams__in=self.user.deprecated_teams.all()) ).distinct() def can_add(self, data):