Serial number uniqueness WITH casing #18165
-
I have implemented: #9187 Code: `class UniqueSerial(CustomValidator):
But, this does not prevent "AAA" and "aaa" as 2 serial numbers. I tried: `class UniqueSerial(CustomValidator):
` This fails with:
and `class UniqueSerial(CustomValidator):
` Also fails. How do I add "lower" part to the code correctly (python noob...) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use a Django filter lookup to perform a case-insensitive match. This should work:
|
Beta Was this translation helpful? Give feedback.
You can use a Django filter lookup to perform a case-insensitive match. This should work: