We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf33a08 commit d16456aCopy full SHA for d16456a
1 file changed
openwisp_ipam/tests/test_admin.py
@@ -1,5 +1,6 @@
1
import json
2
3
+import django
4
from django.contrib.auth import get_user_model
5
from django.contrib.auth.models import Group
6
from django.core.files.uploadedfile import SimpleUploadedFile
@@ -509,7 +510,6 @@ def test_org_admin_create_shared_ip(self):
509
510
},
511
model=IpAddress,
512
error_message=(
- '<ul class="errorlist" id="id_ip_address_error">'
513
- "<li>This field is required.</li></ul>"
514
- ),
+ '<ul class="errorlist"{}><li>This field is required.</li></ul>'
+ ).format(' id="id_ip_address_error"' if django.VERSION >= (5, 2) else ""),
515
)
0 commit comments