diff --git a/cookbook/helper/mdx_attributes.py b/cookbook/helper/mdx_attributes.py index 389b2d26..57eb44c1 100644 --- a/cookbook/helper/mdx_attributes.py +++ b/cookbook/helper/mdx_attributes.py @@ -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', diff --git a/cookbook/tests/api/test_api_step.py b/cookbook/tests/api/test_api_step.py index e1f211e5..dc755b2d 100644 --- a/cookbook/tests/api/test_api_step.py +++ b/cookbook/tests/api/test_api_step.py @@ -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' diff --git a/manage.py b/manage.py old mode 100644 new mode 100755 diff --git a/recipes/settings.py b/recipes/settings.py index eb46736e..85d56381 100644 --- a/recipes/settings.py +++ b/recipes/settings.py @@ -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'