Open WhoisUnknown opened 7 months ago
yes, that looks like a bug. The enum hash identifier is calculated with the default language. When you request another language, the hash is different, due to different strings and so the matching fails.
I tested the master branch. Everything is fine! Thank you so much!
Describe the bug When using models.TextChoices and gettext_lazy get different names for the enum in the resulting schema and swagger UI
To Reproduce
view.py
settings.py
Spain swagger scheme
English swagger scheme
Expected behavior Same name for Enum for each locale