Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use an actual enum field in databases that support it #35

Open
ulope opened this issue Jun 24, 2015 · 2 comments
Open

Use an actual enum field in databases that support it #35

ulope opened this issue Jun 24, 2015 · 2 comments

Comments

@ulope
Copy link

ulope commented Jun 24, 2015

It would be very nice if actual 'enum' type would be used for databases that support them.

@akx
Copy link
Contributor

akx commented Jun 16, 2016

Hmm. That should be configurable, though; the CharField or IntField enums we have now are nice since changing the enum will not require a database migration whereas "physical" enum fields naturally would.

Feel free to write a PR though? :)

@ryanhiebert
Copy link

Yeah, the database migration issue is what ends up being really annoying, in my experience. For example, you might be using an enum from a 3rd party package, so it's annoying when that causes a database migration in your app, because it's not easy to tell that it is going to happen until you start seeing warnings when you open up django shells. It makes it easy for it to go out of sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants