mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-22 08:08:04 +01:00
Fix matplotlib generation
This commit is contained in:
parent
b476e84159
commit
68ba920882
1 changed files with 3 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue