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 a008c2f commit 55d1251Copy full SHA for 55d1251
tests/test_parser_completers.py
@@ -2517,6 +2517,14 @@ def test_choices_completer(self):
2517
f"choices --{field.replace('_', '-')}s {test_str}"
2518
)
2519
2520
+ # postgres normalizes the IPs - revert that
2521
+ if field == "ip_choice":
2522
+ for idx in range(0, len(completions)):
2523
+ completions[idx] = (
2524
+ completions[idx][0].split("/")[0],
2525
+ completions[idx][1],
2526
+ )
2527
+
2528
str_qry = self.MODEL_CLASS.objects.annotate(
2529
field_as_str=Cast(field, output_field=CharField())
2530
0 commit comments