Skip to content

Commit 0ce2f02

Browse files
committed
fixes check() implementation
1 parent e3ae61a commit 0ce2f02

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
python-version: [ "3.8", "3.9", "3.10"]
30-
django-version: [ "2.2", "3.2", "4.0", "4.1"]
30+
django-version: [ "3.2", "4.0", "4.2"]
3131
db-engine: ["pg", "mysql"]
3232
env:
3333
PY_VER: ${{ matrix.python-version}}

CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
(dev)
2+
-----
3+
* BUG FIX: fixes check() implementation
4+
5+
16
Release 2.5
27
-----------
38
* removes deprecatd MANUAL_TRIGGERS

src/concurrency/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class ConcurrentModelAdmin(ConcurrencyActionMixin,
267267
formfield_overrides = {forms.VersionField: {'widget': VersionWidget}}
268268

269269
def check(self, **kwargs):
270-
errors = []
270+
errors = super().check(**kwargs)
271271
if self.fields:
272272
version_field = self.model._concurrencymeta.field
273273
if version_field.name not in self.fields:

tests/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import os
22
import platform
3+
from pathlib import Path
4+
35
import sys
46

57
import pytest
@@ -14,6 +16,9 @@
1416

1517
skippypy = pytest.mark.skipif(PYPY, reason='skip on pypy')
1618

19+
here = Path(__file__).parent
20+
sys.path.insert(0, str(here / 'tests' / "demoapp"))
21+
1722

1823
def pytest_configure():
1924
from django.conf import settings

0 commit comments

Comments
 (0)