From f0089d0bc5511a3ca2d144fd43f466a8e2be490e Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Sun, 9 Aug 2020 19:39:17 +0200 Subject: [PATCH] Remove unused django.template.loader.render_to_string import --- apps/treasury/views.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/treasury/views.py b/apps/treasury/views.py index b3da4d69..b95ce074 100644 --- a/apps/treasury/views.py +++ b/apps/treasury/views.py @@ -13,7 +13,6 @@ from django.db.models import Q from django.forms import Form from django.http import HttpResponse from django.shortcuts import redirect -from django.template.loader import render_to_string from django.urls import reverse_lazy from django.utils.translation import gettext_lazy as _ from django.views.generic import CreateView, UpdateView, DetailView @@ -110,7 +109,6 @@ class InvoiceUpdateView(ProtectQuerysetMixin, LoginRequiredMixin, UpdateView): for field_name in f.fields: f.fields[field_name].disabled = True - return context def form_valid(self, form):