resolved deprecation warnings introduced in django 3.2

This commit is contained in:
smilerz
2021-04-12 14:12:04 -05:00
parent b37fc4e24f
commit 8d02cad7d9
4 changed files with 6 additions and 2 deletions

View File

@@ -19,7 +19,8 @@ class StyleTreeprocessor(Treeprocessor):
class MarkdownFormatExtension(markdown.Extension):
def extendMarkdown(self, md, md_globals):
# md_ globals deprecated - see here:
def extendMarkdown(self, md):
md.treeprocessors.register(
StyleTreeprocessor(),
'StyleTreeprocessor',

View File

@@ -4,7 +4,7 @@ import pytest
from django.urls import reverse
from django_scopes import scopes_disabled
from cookbook.models import Food, Ingredient, Step
from cookbook.models import Step
LIST_URL = 'api:step-list'
DETAIL_URL = 'api:step-detail'