Merge pull request #555 from smilerz/deprecation-fixes

Deprecation fixes
This commit is contained in:
vabene1111
2021-04-15 18:43:40 +02:00
committed by GitHub
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'

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'
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'