Commit 6a9390f9 by Bach Dániel

dashboard: fix flake8 warnings

parent eb3f55b3
...@@ -956,7 +956,7 @@ class VmPortRemoveForm(OperationForm): ...@@ -956,7 +956,7 @@ class VmPortRemoveForm(OperationForm):
AnyTag( AnyTag(
"div", "div",
HTML(format_html(_("<label>Port:</label> {0}/{1}"), HTML(format_html(_("<label>Port:</label> {0}/{1}"),
escape(self.rule.dport), escape(self.rule.proto))), escape(self.rule.dport), escape(self.rule.proto))),
css_class="form-group", css_class="form-group",
), ),
Field("rule"), Field("rule"),
...@@ -989,7 +989,8 @@ class VmPortAddForm(OperationForm): ...@@ -989,7 +989,8 @@ class VmPortAddForm(OperationForm):
helper.layout = Layout( helper.layout = Layout(
AnyTag( AnyTag(
"div", "div",
HTML(format_html(_("<label>Host:</label> {0}"), self.host)), HTML(format_html(
_("<label>Host:</label> {0}"), self.host)),
css_class="form-group", css_class="form-group",
), ),
Field("host"), Field("host"),
......
...@@ -270,7 +270,6 @@ class VmDetailView(GraphMixin, CheckedDetailView): ...@@ -270,7 +270,6 @@ class VmDetailView(GraphMixin, CheckedDetailView):
return redirect(reverse_lazy("dashboard.views.detail", return redirect(reverse_lazy("dashboard.views.detail",
kwargs={'pk': self.object.pk})) kwargs={'pk': self.object.pk}))
def __abort_operation(self, request): def __abort_operation(self, request):
self.object = self.get_object() self.object = self.get_object()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment