Browse Source

Removed nameserver viewing constraints, cleanup

Sebastian Lohff 4 years ago
parent
commit
68e5c31426
1 changed files with 0 additions and 18 deletions
  1. 0
    18
      domains/views.py

+ 0
- 18
domains/views.py View File

@@ -77,21 +77,12 @@ class NameserverCreate(LoginRequiredMixin, CreateView):
77 77
 
78 78
 class NameserverDetail(LoginRequiredMixin, DetailView):
79 79
 	model = Nameserver
80
-	#slug_field = "name"
81
-	#slug_url_kwarg = "domain"
82
-	#context_object_name = "nameserver"
83 80
 	template_name = "whoisdb/handle_show.html"
84 81
 
85
-	def get_queryset(self):
86
-		mnts = self.request.user.maintainer_set.all()
87
-		return self.model.objects.filter(mnt_by__in=mnts).distinct()
88
-
89 82
 
90 83
 class NameserverEdit(MntGenericMixin, LoginRequiredMixin, UpdateView):
91 84
 	model = Nameserver
92 85
 	form_class = NameserverForm
93
-	#slug_field = "name"
94
-	#slug_url_kwarg = "domain"
95 86
 	template_name = "domains/obj_edit.html"
96 87
 
97 88
 	def get_form_kwargs(self, *args, **kwargs):
@@ -103,8 +94,6 @@ class NameserverEdit(MntGenericMixin, LoginRequiredMixin, UpdateView):
103 94
 class NameserverDelete(MntGenericMixin, LoginRequiredMixin, DeleteCheckView):
104 95
 	template_name = "domains/obj_delete.html"
105 96
 	model = Nameserver
106
-	#slug_field = "name"
107
-	#slug_url_kwarg = "domain"
108 97
 	success_url = reverse_lazy("domains:overview")
109 98
 
110 99
 
@@ -121,17 +110,12 @@ class ReverseZoneCreate(LoginRequiredMixin, CreateView):
121 110
 
122 111
 class ReverseZoneDetail(LoginRequiredMixin, DetailView):
123 112
 	model = ReverseZone
124
-	#slug_field = "name"
125
-	#slug_url_kwarg = "domain"
126
-	#context_object_name = "nameserver"
127 113
 	template_name = "whoisdb/handle_show.html"
128 114
 
129 115
 
130 116
 class ReverseZoneEdit(MntGenericMixin, LoginRequiredMixin, UpdateView):
131 117
 	model = ReverseZone
132 118
 	form_class = ReverseZoneForm
133
-	#slug_field = "name"
134
-	#slug_url_kwarg = "domain"
135 119
 	template_name = "domains/obj_edit.html"
136 120
 
137 121
 	def get_form_kwargs(self, *args, **kwargs):
@@ -153,8 +137,6 @@ class ReverseZoneDelete(LoginRequiredMixin, DeleteCheckView):
153 137
 	template_name = "domains/obj_delete.html"
154 138
 	model = ReverseZone
155 139
 	success_url = reverse_lazy("domains:overview")
156
-	#slug_field = "name"
157
-	#slug_url_kwarg = "domain"
158 140
 
159 141
 	def get_queryset(self):
160 142
 		mnts = self.request.user.maintainer_set.all()

Loading…
Cancel
Save