mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
* Fix #570 * [PATCH] chore(ci): check missing migrations --------- Co-authored-by: Sebastian Manger <manger@netcloud.ch>
This commit is contained in:
parent
98effe6917
commit
c690d5ef0f
3 changed files with 6 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ from django.utils.translation import gettext_lazy as _
|
|||
|
||||
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')
|
||||
|
|
|
|||
|
|
@ -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" }
|
||||
|
|
|
|||
7
tox.ini
7
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue