We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class MyModel(PrimaryModel): content_types = models.ManyToManyField(to=ContentType)
class MyModelForm(BootstrapMixin, forms.ModelForm): content_types = DynamicModelMultipleChoiceField( queryset=ContentType.objects.all(), label="Object Types", widget=APISelectMultiple( api_url="/api/extras/content-types/", ), )
The non-admin user should be able to select a content type
After clicking the dropdown for "Object Types" you get the following error:
The results could not be loaded.
In the Nautobot logs, you see the following:
Forbidden: /api/extras/content-types/ "GET /api/extras/content-types/?q=&limit=50&offset=0&brief=true HTTP/1.1" 403 63
I was able to reproduce the issue with the demo user on demo.nautobot.com.
You can also see this by going to https://demo.nautobot.com/api/extras/content-types/ and getting this error:
{ "detail": "You do not have permission to perform this action." }
The text was updated successfully, but these errors were encountered:
HanlinMiao
Successfully merging a pull request may close this issue.
Environment
Steps to Reproduce
Expected Behavior
The non-admin user should be able to select a content type
Observed Behavior
After clicking the dropdown for "Object Types" you get the following error:
In the Nautobot logs, you see the following:
Analysis
I was able to reproduce the issue with the demo user on demo.nautobot.com.
You can also see this by going to https://demo.nautobot.com/api/extras/content-types/ and getting this error:
The text was updated successfully, but these errors were encountered: