What happens if prefix generated is same for 2 keys #231
Unanswered
aniket-banyal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here -
djangorestframework-api-key/src/rest_framework_api_key/models.py
Lines 13 to 28 in 4984a14
What happens if a duplicate prefix gets generated?
Since, in
AbstractAPIKey
, prefix field hasunique=True
, I am guessingIntegrityError
would be raised.Does this library handle that?
Beta Was this translation helpful? Give feedback.
All reactions