Skip to content

Serial number uniqueness WITH casing #18165

Discussion options

You must be logged in to vote

You can use a Django filter lookup to perform a case-insensitive match. This should work:

.filter(serial__iexact=instance.serial)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@moseisleydk
Comment options

Answer selected by moseisleydk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants