-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change the logic for compatiable testcases for django < 4.2
- Loading branch information
1 parent
58af5c6
commit 33620d5
Showing
2 changed files
with
3 additions
and
4 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
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,7 +1,7 @@ | ||
from djangocms_url_manager.compat import DJANGO_4_2 | ||
from djangocms_url_manager.compat import DJANGO_4_1 | ||
|
||
|
||
if not DJANGO_4_2: # TODO: remove when dropping support for Django < 4.2 | ||
if DJANGO_4_1: # TODO: remove when dropping support for Django < 4.2 | ||
from django.test.testcases import TransactionTestCase | ||
|
||
TransactionTestCase.assertQuerySetEqual = TransactionTestCase.assertQuerysetEqual |