Skip to content

Commit

Permalink
Merge branch 'dfunckt:master' into sergioisidoro-isolate-get-perm
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioisidoro authored Dec 22, 2021
2 parents dd45333 + 2b79375 commit e7b6269
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

## v3.1.0 - 2021/12/22

- Added support for Django 4.0

## v3.0.0 - 2021/05/10

- Dropped support for Python 2
Expand Down
2 changes: 1 addition & 1 deletion rules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
test_rule,
)

VERSION = (3, 0, 0, "final", 1)
VERSION = (3, 1, 0, "final", 1)
26 changes: 13 additions & 13 deletions tests/testapp/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
from django.contrib import admin
from django.urls import re_path

from .views import (
BookCreateView,
Expand All @@ -18,40 +18,40 @@
admin.autodiscover()

urlpatterns = [
url(r"^admin/", admin.site.urls),
re_path(r"^admin/", admin.site.urls),
# Function-based views
url(r"^(?P<book_id>\d+)/change/$", change_book, name="change_book"),
url(r"^(?P<book_id>\d+)/delete/$", delete_book, name="delete_book"),
url(r"^(?P<book_id>\d+)/raise/$", view_that_raises, name="view_that_raises"),
url(r"^(?P<book_id>\d+)/object/$", view_with_object, name="view_with_object"),
url(
re_path(r"^(?P<book_id>\d+)/change/$", change_book, name="change_book"),
re_path(r"^(?P<book_id>\d+)/delete/$", delete_book, name="delete_book"),
re_path(r"^(?P<book_id>\d+)/raise/$", view_that_raises, name="view_that_raises"),
re_path(r"^(?P<book_id>\d+)/object/$", view_with_object, name="view_with_object"),
re_path(
r"^(?P<book_id>\d+)/list/$",
view_with_permission_list,
name="view_with_permission_list",
),
# Class-based views
url(r"^cbv/create/$", BookCreateView.as_view(), name="cbv.create_book"),
url(
re_path(r"^cbv/create/$", BookCreateView.as_view(), name="cbv.create_book"),
re_path(
r"^cbv/(?P<book_id>\d+)/change/$",
BookUpdateView.as_view(),
name="cbv.change_book",
),
url(
re_path(
r"^cbv/(?P<book_id>\d+)/delete/$",
BookDeleteView.as_view(),
name="cbv.delete_book",
),
url(
re_path(
r"^cbv/(?P<book_id>\d+)/raise/$",
ViewThatRaises.as_view(),
name="cbv.view_that_raises",
),
url(
re_path(
r"^cbv/(?P<book_id>\d+)/list/$",
ViewWithPermissionList.as_view(),
name="cbv.view_with_permission_list",
),
url(
re_path(
r"^cbv/(?P<book_id>\d+)/change-error/$",
BookUpdateErrorView.as_view(),
name="cbv.change_book_error",
Expand Down

0 comments on commit e7b6269

Please sign in to comment.