Skip to content

Commit

Permalink
Fix #570 (#571)
Browse files Browse the repository at this point in the history
* Fix #570

* [PATCH] chore(ci): check missing migrations

---------

Co-authored-by: Sebastian Manger <[email protected]>
  • Loading branch information
Mogost and sebastianmanger authored Aug 23, 2024
1 parent 98effe6 commit c690d5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion constance/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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
Expand Down

0 comments on commit c690d5e

Please sign in to comment.