Skip to content

Commit

Permalink
django 4.1 in tox
Browse files Browse the repository at this point in the history
  • Loading branch information
justquick committed Aug 18, 2022
1 parent c39808d commit 7a5f3e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actstream/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def label(model_class):
def is_installed(model_class):
"""
Returns True if a model_class is installed.
model_class._meta.installed is only reliable in Django 1.7+
model_class._meta.app_config is only reliable in Django 1.7+
"""
return model_class._meta.installed
return model_class._meta.app_config is not None


def validate(model_class, exception_class=ImproperlyConfigured):
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
envlist =
py{37,38,39}-django32-{mysql,postgres,sqlite}
py{38,39}-django40-{mysql,postgres,sqlite}
py{38,39}-django41-{mysql,postgres,sqlite}
toxworkdir=/tmp/.tox

[testenv]
Expand All @@ -11,6 +12,7 @@ deps =
coverage>=4.5.1
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
mysql: mysqlclient>=2.0.0
mysql: django-mysql>=2.4.1
postgres: psycopg2-binary>=2.8
Expand Down

0 comments on commit 7a5f3e8

Please sign in to comment.