diff --git a/elections2021/management/commands/export_program.py b/elections2021/management/commands/export_program.py index 4fc22ba660c94bccb5f4726a7e8082e58a627f30..e5a4f30047c19d57677bd037413893ac8ca3803b 100644 --- a/elections2021/management/commands/export_program.py +++ b/elections2021/management/commands/export_program.py @@ -8,7 +8,7 @@ from django.template.loader import render_to_string from django.utils import timezone from PyPDF2 import PdfFileMerger from weasyprint import CSS, HTML, default_url_fetcher -from weasyprint.fonts import FontConfiguration +from weasyprint.text.fonts import FontConfiguration from ...constants import BENEFITS_CHOICES, MINISTRY_CHOICES, MINISTRY_CODES from ...models import Elections2021ProgramPointPage