Skip to content

Commit 2728a85

Browse files
committed
black fixes
1 parent c6cf891 commit 2728a85

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

tools/templatetags/action_buttons.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def return_button(context, tool):
2020
form = ReturnForm(initial=dict(tool=tool))
2121
return render_crispy_form(form, context=context)
2222

23+
2324
from crispy_forms.utils import render_crispy_form
2425
from django_jinja import library, utils
2526
import jinja2

tools/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
DecommissionView,
1616
ReinstateView,
1717
BorrowView,
18-
ReturnView
18+
ReturnView,
1919
)
2020

2121
app_name = "tools" # url namespace

tools/views.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,7 @@ def get_context_data(self, **kwargs):
205205

206206
class ToolActionView(ActionViewMixin, SingleToolObjectMixin, View):
207207
def get_success_url(self):
208-
return reverse(
209-
"tools:detail", kwargs=dict(pk=self.tool.pk)
210-
)
208+
return reverse("tools:detail", kwargs=dict(pk=self.tool.pk))
211209

212210

213211
class BorrowView(LoginRequiredMixin, ToolActionView):

0 commit comments

Comments
 (0)