Fix matplotlib generation

This commit is contained in:
Gabriel Augendre 2022-09-24 22:52:00 +01:00
parent b476e84159
commit 68ba920882

View file

@ -2,6 +2,7 @@ import datetime
from io import StringIO
from zoneinfo import ZoneInfo
import matplotlib
import numpy as np
from django.conf import settings
from django.contrib import messages
@ -17,6 +18,8 @@ from matplotlib.figure import Figure
from purchase.models import Basket, PaymentMethod, Product, ProductQuerySet
matplotlib.use("TkAgg")
@permission_required("purchase.view_basket")
def reports(request):