Working with Grappelli(2.11.1) in Django(1.11.10). I crafted small custom dashboard and look now for some method to variate appearance of elements. In particular I need to show some url-element
self.children.append(modules.LinkList(
_('e-mail'),
column=2,
css_class=('grp-collapse grp-closed'),
children=[
{
'title': _('gmail'),
'url': 'gmail.com',
'external': True,
},
]
))
only to users of specified group and to hide it to others. In regular way I would try to use auth.get_user(), but this depends on 'request'. Which is not available, or at least visible, for me. Any way to make this feature? Thanks anyway.