5monkeys / django-enumfield

Custom Django field for using enumerations of named constants
MIT License
205 stars 46 forks source link

Any reason why IntegerField is the only type supported? #61

Open kingbuzzman opened 4 years ago

kingbuzzman commented 4 years ago

We have a lot of string tuples, while I agree that it would take infinitely less space in the db (space is cheap now a days); we have dba's that deal with the db directly and the strings are a lot more descriptive. I'm curious why the option is not available. Thank you.

kingbuzzman commented 4 years ago

Would a change like this be acceptable? https://github.com/5monkeys/django-enumfield/compare/master...kingbuzzman:master -- ps im not a fan of StrEnum, it's just Enum can't be used now.

michelTho commented 8 months ago

I would love to see this kind of feature too, string enums are a real gain of time when needed to dig into the database