-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from pinax/django4_support
Django 4 compatibility
- Loading branch information
Showing
13 changed files
with
77 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Django CI | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.8, 3.9, "3.10" ] | ||
django-version: [3.2, 4.2 ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install "django ==${{ matrix.django-version }}" | ||
make init | ||
- name: Run Tests | ||
run: | | ||
make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ __pycache__/ | |
|
||
# Distribution / packaging | ||
.Python | ||
.venv | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import django.dispatch | ||
|
||
added_member = django.dispatch.Signal(providing_args=["membership", "by"]) | ||
invited_user = django.dispatch.Signal(providing_args=["membership", "by"]) | ||
promoted_member = django.dispatch.Signal(providing_args=["membership", "by"]) | ||
demoted_member = django.dispatch.Signal(providing_args=["membership", "by"]) | ||
accepted_membership = django.dispatch.Signal(providing_args=["membership"]) | ||
rejected_membership = django.dispatch.Signal(providing_args=["membership"]) | ||
resent_invite = django.dispatch.Signal(providing_args=["membership", "by"]) | ||
removed_membership = django.dispatch.Signal(providing_args=["team", "user", "invitee", "by"]) | ||
added_member = django.dispatch.Signal() | ||
invited_user = django.dispatch.Signal() | ||
promoted_member = django.dispatch.Signal() | ||
demoted_member = django.dispatch.Signal() | ||
accepted_membership = django.dispatch.Signal() | ||
rejected_membership = django.dispatch.Signal() | ||
resent_invite = django.dispatch.Signal() | ||
removed_membership = django.dispatch.Signal() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from django.conf.urls import include, url | ||
from django.urls import include, re_path | ||
|
||
urlpatterns = [ | ||
url(r"^account/", include("account.urls")), | ||
url(r"^", include("pinax.teams.urls", namespace="pinax_teams")), | ||
re_path(r"^account/", include("account.urls")), | ||
re_path(r"^", include("pinax.teams.urls", namespace="pinax_teams")), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters