fix dids and credentials from the user

This commit is contained in:
Cayo Puigdefabregas 2023-12-12 18:00:04 +01:00
parent 79dcb42c23
commit 40d662f62e
2 changed files with 5 additions and 2 deletions

View file

@ -629,7 +629,7 @@ class DidsView(Credentials):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context.update({
'dids': DID.objects,
'dids': DID.objects.filter(user=self.request.user),
})
return context

View file

@ -81,8 +81,11 @@ class CredentialsView(MyWallet, TemplateView):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
creds = VerificableCredential.objects.filter(
user=self.request.user
)
context.update({
'credentials': VerificableCredential.objects,
'credentials': creds,
})
return context