geex-arts / django-jet

Modern responsive template for the Django admin interface with improved functionality. We are proud to announce completely new Jet. Please check out Live Demo
https://github.com/jet-admin/jet-bridge
GNU Affero General Public License v3.0
3.58k stars 773 forks source link

Unable to remove or hide or rename models(resource) that are not necessory. #162

Open ManojDatt opened 7 years ago

ManojDatt commented 7 years ago

Unable to remove or hide or rename models(resource) that are not necessory.

TheCthulhuKid commented 7 years ago

Not sure what you are after but to rename models just add verbose_name = 'my awesome name' to the class Meta.

As to removing and hiding, is that not covered by a custom dashboard?

Ismael-VC commented 7 years ago

@ManojDatt see:

Based on x0nix's answer I did some experiments. It seems like returning an empty dict from get_model_perms excludes the model from index.html, whilst still allowing you to edit instances directly.

http://stackoverflow.com/a/4871511/2374329

This works for me with Django 1.10.5, Python 3.6.0 and django-jet 1.0.4.

SalahAdDin commented 7 years ago

Maybe can be a new feature for django-jet.

Ismael-VC commented 7 years ago

Please come to the django-jet Discord server so we can organize if you like:

Welcome! 😄