|
|
@ -44,8 +44,8 @@ class AssetListView(AdminUserRequiredMixin, TemplateView):
|
|
|
|
|
|
|
|
|
|
|
|
def get_context_data(self, **kwargs):
|
|
|
|
def get_context_data(self, **kwargs):
|
|
|
|
context = {
|
|
|
|
context = {
|
|
|
|
'app': 'Assets',
|
|
|
|
'app': _('Assets'),
|
|
|
|
'action': 'Asset list',
|
|
|
|
'action': _('Asset list'),
|
|
|
|
# 'groups': AssetGroup.objects.all(),
|
|
|
|
# 'groups': AssetGroup.objects.all(),
|
|
|
|
'system_users': SystemUser.objects.all(),
|
|
|
|
'system_users': SystemUser.objects.all(),
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -58,8 +58,8 @@ class UserAssetListView(LoginRequiredMixin, TemplateView):
|
|
|
|
|
|
|
|
|
|
|
|
def get_context_data(self, **kwargs):
|
|
|
|
def get_context_data(self, **kwargs):
|
|
|
|
context = {
|
|
|
|
context = {
|
|
|
|
'app': 'Assets',
|
|
|
|
'app': _('Assets'),
|
|
|
|
'action': 'Asset list',
|
|
|
|
'action': _('Asset list'),
|
|
|
|
'system_users': SystemUser.objects.all(),
|
|
|
|
'system_users': SystemUser.objects.all(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
kwargs.update(context)
|
|
|
|
kwargs.update(context)
|
|
|
|