django-jet
django-jet copied to clipboard
How to get user in DashboardModule
class ModuloUsuariosPorCarrera(modules.DashboardModule):
def init_with_context(self, context):
## request user is straff
self.children = Mas_Hosts.objects.all()`
For whoever fights with this next,
context.get('user') context.get('user').pk