Django suit menu without child

352 Views Asked by At

I want to create a custom menu in django-suit that attached to a model without any child. I have done it for django users like this:

       {'label': 'Users', 'url': '/admin/auth/user/', 'icon': 'icon-user'},

But the hard-coded url may not always valid. Is there any better approach to do it without hard-coded url?

1

There are 1 best solutions below

1
mishbah On

How about:

{'label': 'Users', 'url': 'auth.user', 'icon':'icon-user'},