mirror of
https://github.com/Crocmagnon/checkout.git
synced 2024-11-22 16:18:03 +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 io import StringIO
|
||||||
from zoneinfo import ZoneInfo
|
from zoneinfo import ZoneInfo
|
||||||
|
|
||||||
|
import matplotlib
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.contrib import messages
|
from django.contrib import messages
|
||||||
|
@ -17,6 +18,8 @@ from matplotlib.figure import Figure
|
||||||
|
|
||||||
from purchase.models import Basket, PaymentMethod, Product, ProductQuerySet
|
from purchase.models import Basket, PaymentMethod, Product, ProductQuerySet
|
||||||
|
|
||||||
|
matplotlib.use("TkAgg")
|
||||||
|
|
||||||
|
|
||||||
@permission_required("purchase.view_basket")
|
@permission_required("purchase.view_basket")
|
||||||
def reports(request):
|
def reports(request):
|
||||||
|
|
Loading…
Reference in a new issue