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
If you define the JET_SIDE_MENU_ITEMS setting with a list of models, for instance like this:
JET_SIDE_MENU_ITEMS
JET_SIDE_MENU_ITEMS = [ { 'label': 'foo', 'items': [ { 'label': 'bar', 'url': {'type': 'model', 'app_label': 'foo', 'model': 'bar'}, }, ], }, ]
When a user that does not have any permissions to the foo.bar model tries to load the admin, they will trigger a KeyError here: https://github.com/assem-ch/django-jet-reboot/blob/master/jet/utils.py#L310, since the model won't be present in models.
foo.bar
KeyError
models
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If you define the
JET_SIDE_MENU_ITEMS
setting with a list of models, for instance like this:When a user that does not have any permissions to the
foo.bar
model tries to load the admin, they will trigger aKeyError
here: https://github.com/assem-ch/django-jet-reboot/blob/master/jet/utils.py#L310, since the model won't be present inmodels
.The text was updated successfully, but these errors were encountered: