Skip to content

Commit

Permalink
Import reverse from django.urls directly
Browse files Browse the repository at this point in the history
The old style is no longer needed. This makes pre-commit tests pass.
  • Loading branch information
Flimm committed Jun 14, 2024
1 parent 8ebcd43 commit 5945342
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion invitations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
try:
from django.urls import reverse
except ImportError:
from django.core.urlresolvers import reverse
from django.urls import reverse

from django.db import models
from django.utils import timezone
Expand Down
2 changes: 1 addition & 1 deletion tests/allauth/test_allauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
try:
from django.urls import reverse
except ImportError:
from django.core.urlresolvers import reverse
from django.urls import reverse

import pytest
from allauth.account.models import EmailAddress
Expand Down
2 changes: 1 addition & 1 deletion tests/basic/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
try:
from django.urls import reverse
except ImportError:
from django.core.urlresolvers import reverse
from django.urls import reverse

import pytest
from django.contrib.auth.models import AnonymousUser
Expand Down

0 comments on commit 5945342

Please sign in to comment.