diff --git a/constance/models.py b/constance/models.py index 5d6eeece..49213b47 100644 --- a/constance/models.py +++ b/constance/models.py @@ -4,7 +4,7 @@ class Constance(models.Model): key = models.CharField(max_length=255, unique=True) - value = models.TextField(null=True, blank=True) + value = models.TextField(null=True, blank=True, editable=False) class Meta: verbose_name = _('constance') diff --git a/pyproject.toml b/pyproject.toml index 1b53fc77..32e31233 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "django-constance" -version = "4.0.0" +version = "4.0.1" description = "Django live settings with pluggable backends, including Redis." readme = "README.rst" license = { text = "BSD" } diff --git a/tox.ini b/tox.ini index d549ddab..4f95cfde 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,9 @@ [tox] isolated_build = true envlist = - py{38,39,310,311,312}-dj{42}-{unittest,pytest} - py{310,311,312}-dj{50}-{unittest,pytest} - py{310,311,312}-dj{main}-{unittest,pytest} + py{38,39,310,311,312}-dj{42}-{unittest,pytest,checkmigrations} + py{310,311,312}-dj{50}-{unittest,pytest,checkmigrations} + py{310,311,312}-dj{main}-{unittest,pytest,checkmigrations} skip_missing_interpreters = True [testenv] @@ -25,6 +25,7 @@ commands = unittest: coverage report unittest: coverage xml pytest: pytest --cov=. --ignore=.tox --disable-pytest-warnings --cov-report=xml --cov-append {toxinidir} + checkmigrations: django-admin makemigrations --check --dry-run setenv = PYTHONPATH = {toxinidir} PYTHONDONTWRITEBYTECODE = 1