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): class MarkdownFormatExtension(markdown.Extension):
def extendMarkdown(self, md, md_globals): # md_ globals deprecated - see here:
def extendMarkdown(self, md):
md.treeprocessors.register( md.treeprocessors.register(
StyleTreeprocessor(), StyleTreeprocessor(),
'StyleTreeprocessor', 'StyleTreeprocessor',

View File

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

0
manage.py Normal file → Executable file
View File

View File

@ -248,3 +248,6 @@ MEDIA_ROOT = os.path.join(BASE_DIR, "mediafiles")
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
TEST_RUNNER = "cookbook.helper.CustomTestRunner.CustomTestRunner" TEST_RUNNER = "cookbook.helper.CustomTestRunner.CustomTestRunner"
# future versions of django will make undeclared default django.db.models.BigAutoField which will force migrations on all models
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'