Change Link in Django Suit

753 views Asked by At

I'm using Django Suit for my admin, but I would like the change links to be linked from the model name (like in the standard Django admin) instead of from a separate "change" link. How can I remove the "change" link and make the model title itself the link?

For example, in the attached image, I would like to link to the change pages from the first column, instead of using that separate "change" link. enter image description here

1

There are 1 answers

2
The Brezilien On

If these are different models, then you would modify the config section in settings. That is of course assuming that you want them to appear as menu links on the left side.

You would do that like so :

SUIT_CONFIG = {

  'MENU': (

    # Keep original label and models
    'sites',

    # Rename app and set icon
    {'app': 'auth', 'label': 'Authorization', 'icon':'icon-lock'},

    # Reorder app models
    {'app': 'auth', 'models': ('user', 'group')},

    # Custom app, with models
    {'label': 'Settings', 'icon':'icon-cog', 'models': ('auth.user', 'auth.group')}, `

Check out The Docs for more