add credential type in credential view
This commit is contained in:
parent
c6f534d2f8
commit
ae6928a2ae
|
@ -680,13 +680,14 @@ class CredentialsView(Credentials, SingleTableView):
|
|||
|
||||
class CredentialView(Credentials):
|
||||
template_name = "idhub/admin/issue_credentials.html"
|
||||
subtitle = _('Change credential status')
|
||||
subtitle = _('Credential')
|
||||
icon = ''
|
||||
model = VerificableCredential
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
self.pk = kwargs['pk']
|
||||
self.object = get_object_or_404(self.model, pk=self.pk)
|
||||
self.subtitle += ": {}".format(self.object.type)
|
||||
return super().get(request, *args, **kwargs)
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
|
|
|
@ -205,6 +205,7 @@ class CredentialView(MyWallet, TemplateView):
|
|||
pk=self.pk,
|
||||
user=self.request.user
|
||||
)
|
||||
self.subtitle += ": {}".format(self.object.type)
|
||||
return super().get(request, *args, **kwargs)
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue