Skip to content

Commit

Permalink
Add Django 4.x support (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
apragacz committed Dec 22, 2021
1 parent 10ef78a commit 812b780
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ workflows:
- flake8
- mypy
- setup_project
- test-tox:
name: test-tox-py39-django40
py: "39"
django: "40"
requires:
- test
- test-tox:
name: test-tox-py39-django32
py: "39"
Expand Down
8 changes: 3 additions & 5 deletions rest_registration/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
from django.dispatch import Signal

# A new user has registered.
user_registered = Signal(providing_args=["user", "request"])
user_registered = Signal()

# A user has activated his or her account.
user_activated = Signal(providing_args=["user", "request"])
user_activated = Signal()

# A user has verified his or her new email.
user_changed_email = Signal(
providing_args=["user", "new_email", "old_email", "request"]
)
user_changed_email = Signal()
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[tox]
envlist =
py{39,38,37,36}-django40,
py{37,36}-django30,
py{37,36}-django22,
py{36,35}-django21,
Expand All @@ -22,6 +23,7 @@ deps =
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
djangomaster: https://github.com/django/django/archive/master.tar.gz
py{35,36}-django{111,20,21,22}: djangorestframework>=3.11,<3.12
-rrequirements/requirements-test.in

0 comments on commit 812b780

Please sign in to comment.