Skip to content

Commit c690d5e

Browse files
Fix #570 (#571)
* Fix #570 * [PATCH] chore(ci): check missing migrations --------- Co-authored-by: Sebastian Manger <[email protected]>
1 parent 98effe6 commit c690d5e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

constance/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class Constance(models.Model):
66
key = models.CharField(max_length=255, unique=True)
7-
value = models.TextField(null=True, blank=True)
7+
value = models.TextField(null=True, blank=True, editable=False)
88

99
class Meta:
1010
verbose_name = _('constance')

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "django-constance"
7-
version = "4.0.0"
7+
version = "4.0.1"
88
description = "Django live settings with pluggable backends, including Redis."
99
readme = "README.rst"
1010
license = { text = "BSD" }

tox.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[tox]
22
isolated_build = true
33
envlist =
4-
py{38,39,310,311,312}-dj{42}-{unittest,pytest}
5-
py{310,311,312}-dj{50}-{unittest,pytest}
6-
py{310,311,312}-dj{main}-{unittest,pytest}
4+
py{38,39,310,311,312}-dj{42}-{unittest,pytest,checkmigrations}
5+
py{310,311,312}-dj{50}-{unittest,pytest,checkmigrations}
6+
py{310,311,312}-dj{main}-{unittest,pytest,checkmigrations}
77
skip_missing_interpreters = True
88

99
[testenv]
@@ -25,6 +25,7 @@ commands =
2525
unittest: coverage report
2626
unittest: coverage xml
2727
pytest: pytest --cov=. --ignore=.tox --disable-pytest-warnings --cov-report=xml --cov-append {toxinidir}
28+
checkmigrations: django-admin makemigrations --check --dry-run
2829
setenv =
2930
PYTHONPATH = {toxinidir}
3031
PYTHONDONTWRITEBYTECODE = 1

0 commit comments

Comments
 (0)