add appropriate filtering for SSH key list

- fix osusers.views.ListSshPublicKeys
- add changelog entry
This commit is contained in:
Jan Dittberner 2015-02-21 20:28:26 +01:00
parent 13160b522d
commit dd38edd498
2 changed files with 6 additions and 0 deletions

View file

@ -107,6 +107,10 @@ class ListSshPublicKeys(
model = SshPublicKey
context_object_name = 'keys'
def get_queryset(self):
return SshPublicKey.objects.filter(
user=self.get_hosting_package().osuser)
def get_context_data(self, **kwargs):
context = super(ListSshPublicKeys, self).get_context_data(**kwargs)
context.update({