Skip to content

Commit

Permalink
Django 4 support added.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesoutterside committed Dec 9, 2021
1 parent a211a6f commit bb1041b
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
- "3.8"
- "3.9"
django-version:
- "2.2"
- "3.0"
- "3.1"
- "3.2"
- "4.0"
use-custom-model:
- true
- false
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__next__
------------------

* Added support for Django 3.2
* Added support for Django 4.0, 3.2
* Fixed some documentation issues (thanks @marcanuy)
* Added setting to allow clearing a rating.
* Fixed some deprecation warnings (thanks @mvillalba)
Expand Down
87 changes: 50 additions & 37 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,55 +5,68 @@
# pip-compile
#
asgiref==3.4.1 # via django
attrs==21.2.0 # via hypothesis, pytest
beautifulsoup4==4.9.3 # via webtest
click==8.0.1 # via pip-tools
coverage==5.5 # via -r requirements.in, pytest-cov
django-braces==1.14.0 # via -r requirements.in
django-model-utils==4.1.1 # via -r requirements.in
django-webtest==1.9.7 # via -r requirements.in
django==3.2.6 # via -r requirements.in, django-braces, django-model-utils, model-mommy
async-generator==1.10 # via trio, trio-websocket
attrs==21.2.0 # via hypothesis, outcome, pytest, trio
beautifulsoup4==4.10.0 # via webtest
certifi==2021.10.8 # via urllib3
cffi==1.15.0 # via cryptography
click==8.0.3 # via pip-tools
coverage[toml]==6.2 # via -r requirements.in, pytest-cov
cryptography==36.0.0 # via pyopenssl, urllib3
django-braces==1.15.0 # via -r requirements.in
django-model-utils==4.2.0 # via -r requirements.in
django-webtest==1.9.8 # via -r requirements.in
django==3.2.10 # via -r requirements.in, django-braces, django-model-utils, model-mommy
fancycompleter==0.9.1 # via pdbpp
flake8==3.9.2 # via -r requirements.in
hypothesis==6.14.5 # via -r requirements.in
importlib-metadata==4.6.3 # via click, flake8, pep517, pluggy, pytest
flake8==4.0.1 # via -r requirements.in
h11==0.12.0 # via wsproto
hypothesis==6.30.1 # via -r requirements.in
idna==3.3 # via trio, urllib3
importlib-metadata==4.2.0 # via click, flake8, pep517, pluggy, pytest
iniconfig==1.1.1 # via pytest
mccabe==0.6.1 # via flake8
mock==4.0.3 # via -r requirements.in
model-mommy==2.0.0 # via -r requirements.in
packaging==21.0 # via pytest
outcome==1.1.0 # via trio
packaging==21.3 # via pytest
path.py==12.5.0 # via -r requirements.in
path==16.2.0 # via path.py
pdbpp==0.10.3 # via -r requirements.in
pep517==0.11.0 # via pip-tools
pip-tools==6.2.0 # via -r requirements.in
pluggy==0.13.1 # via pytest
py==1.10.0 # via pytest
pycodestyle==2.7.0 # via flake8
pyflakes==2.3.1 # via flake8
pygments==2.9.0 # via pdbpp
pyparsing==2.4.7 # via packaging
pep517==0.12.0 # via pip-tools
pip-tools==6.4.0 # via -r requirements.in
pluggy==1.0.0 # via pytest
py==1.11.0 # via pytest
pycodestyle==2.8.0 # via flake8
pycparser==2.21 # via cffi
pyflakes==2.4.0 # via flake8
pygments==2.10.0 # via pdbpp
pyopenssl==21.0.0 # via urllib3
pyparsing==3.0.6 # via packaging
pyrepl==0.9.0 # via fancycompleter
pytest-cov==2.12.1 # via -r requirements.in
pytest-django==4.4.0 # via -r requirements.in
pytest==6.2.4 # via -r requirements.in, pytest-cov, pytest-django
pytz==2021.1 # via django
selenium==3.141.0 # via -r requirements.in
six==1.16.0 # via django-braces, webtest
sortedcontainers==2.4.0 # via hypothesis
soupsieve==2.2.1 # via beautifulsoup4
sqlparse==0.4.1 # via django
swapper==1.1.2.post1 # via -r requirements.in
toml==0.10.2 # via pytest, pytest-cov
tomli==1.2.1 # via pep517
typing-extensions==3.10.0.0 # via asgiref, importlib-metadata
urllib3==1.26.6 # via selenium
pytest-cov==3.0.0 # via -r requirements.in
pytest-django==4.5.2 # via -r requirements.in
pytest==6.2.5 # via -r requirements.in, pytest-cov, pytest-django
pytz==2021.3 # via django
selenium==4.1.0 # via -r requirements.in
six==1.16.0 # via pyopenssl
sniffio==1.2.0 # via trio
sortedcontainers==2.4.0 # via hypothesis, trio
soupsieve==2.3.1 # via beautifulsoup4
sqlparse==0.4.2 # via django
swapper==1.3.0 # via -r requirements.in
toml==0.10.2 # via pytest
tomli==1.2.2 # via coverage, pep517
trio-websocket==0.9.2 # via selenium
trio==0.19.0 # via selenium, trio-websocket
typing-extensions==4.0.1 # via asgiref, importlib-metadata
urllib3[secure]==1.26.7 # via selenium
waitress==2.0.0 # via webtest
webob==1.8.7 # via webtest
webtest==2.0.35 # via django-webtest
wheel==0.36.2 # via pip-tools
webtest==3.0.0 # via django-webtest
wheel==0.37.0 # via pip-tools
wmctrl==0.4 # via pdbpp
zipp==3.5.0 # via importlib-metadata, pep517
wsproto==1.0.0 # via trio-websocket
zipp==3.6.0 # via importlib-metadata, pep517

# The following packages are considered to be unsafe in a requirements file:
# pip
Expand Down
2 changes: 1 addition & 1 deletion star_ratings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db.models import Avg, Count, Sum
from django.utils.translation import ugettext as _
from django.utils.translation import gettext as _
from model_utils.models import TimeStampedModel

from . import app_settings, get_star_ratings_rating_model_name, get_star_ratings_rating_model
Expand Down

0 comments on commit bb1041b

Please sign in to comment.