Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use public methods to reference registered models #15277

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

AlanCoding
Copy link
Member

@AlanCoding AlanCoding commented Jun 17, 2024

SUMMARY

In ansible/django-ansible-base#475 I found need to change the structure of _registry in the permission registry... which fails the AWX downstream checks because it uses that. So I guess this is why we have public / private methods.

This code was coppied over from DAB at some time, so that kind of explains how this reference seeped in. This is a really simple (easy) change, just change from referencing the internal variable to the public property that gives all the models.

The purpose is to unblock that DAB change.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API

@AlanCoding AlanCoding merged commit f6c0eff into ansible:devel Jun 17, 2024
23 checks passed
djyasin pushed a commit to djyasin/awx that referenced this pull request Sep 16, 2024
djyasin pushed a commit to djyasin/awx that referenced this pull request Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants