1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Standardize on "object" for ObjectView template context

This commit is contained in:
Jeremy Stretch
2020-11-19 11:29:18 -05:00
parent 11fa348575
commit e2d2ff8586
40 changed files with 588 additions and 627 deletions

View File

@@ -66,14 +66,6 @@ class SecretListView(generic.ObjectListView):
class SecretView(generic.ObjectView):
queryset = Secret.objects.all()
def get(self, request, pk):
secret = get_object_or_404(self.queryset, pk=pk)
return render(request, 'secrets/secret.html', {
'secret': secret,
})
class SecretEditView(generic.ObjectEditView):
queryset = Secret.objects.all()