Fix access to nameservers
This commit is contained in:
parent
54e34a49b0
commit
c21cbcbd53
|
@ -82,6 +82,10 @@ class NameserverDetail(LoginRequiredMixin, DetailView):
|
||||||
#context_object_name = "nameserver"
|
#context_object_name = "nameserver"
|
||||||
template_name = "whoisdb/handle_show.html"
|
template_name = "whoisdb/handle_show.html"
|
||||||
|
|
||||||
|
def get_queryset(self):
|
||||||
|
mnts = self.request.user.maintainer_set.all()
|
||||||
|
return self.model.objects.filter(mnt_by__in=mnts).distinct()
|
||||||
|
|
||||||
|
|
||||||
class NameserverEdit(MntGenericMixin, LoginRequiredMixin, UpdateView):
|
class NameserverEdit(MntGenericMixin, LoginRequiredMixin, UpdateView):
|
||||||
model = Nameserver
|
model = Nameserver
|
||||||
|
|
Loading…
Reference in New Issue