1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-22 23:42:25 +00:00

Remove unused django.template.loader.render_to_string import

This commit is contained in:
Alexandre Iooss 2020-08-09 19:39:17 +02:00
parent 5e75a56eda
commit f0089d0bc5

View File

@ -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):