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
Hi folks,
I am try to suggest my favorite permission at admin site when adding a permission (dop down menu). How can I do that?
admin.py
class DeploymentUserObjectPermissionAdmin(GuardedModelAdmin): list_display = ('permission', 'user', 'content_object') search_fields = ('permission', 'user', 'content_object') ordering = ('-permission',
models.py
class DeploymentUserObjectPermission(UserObjectPermissionBase): content_object = models.ForeignKey(Deployment, on_delete=models.CASCADE)
The text was updated successfully, but these errors were encountered:
And another additional question: How could I filter the permission selection?
Sorry, something went wrong.
added to stackoverflow
No branches or pull requests
Hi folks,
I am try to suggest my favorite permission at admin site when adding a permission (dop down menu). How can I do that?
admin.py
models.py
The text was updated successfully, but these errors were encountered: