From 815df243411fa370ce842b995fa2ddf390c1f800 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Wed, 7 Aug 2024 14:16:35 -0400 Subject: [PATCH] Add resource to the User model. No-Issue Signed-off-by: James Tanner --- galaxy_ng/app/models/auth.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/galaxy_ng/app/models/auth.py b/galaxy_ng/app/models/auth.py index 0933c2b54a..93200d7f24 100644 --- a/galaxy_ng/app/models/auth.py +++ b/galaxy_ng/app/models/auth.py @@ -4,6 +4,9 @@ from pulpcore.plugin.models import Group as PulpGroup +from ansible_base.resource_registry.fields import AnsibleResourceField + + log = logging.getLogger(__name__) __all__ = ( @@ -21,7 +24,7 @@ class User(auth_models.AbstractUser): """Custom user model.""" - pass + resource = AnsibleResourceField(primary_key_field="id") class GroupManager(auth_models.GroupManager):