Alex Rivera | Logout

How can I specify a MySQL ENUM type field in a Django model?

Asked 2008-08-21T23:48:08.777
102

How do I go about specifying and using an ENUM in a Django model?

Edit
Report

1 Answer

6

If you really want to use your databases ENUM type:

  1. Use Django 1.x
  2. Recognize your application will only work on some databases.
  3. Puzzle through this documentation page:http://docs.djangoproject.com/en/dev/howto/custom-model-fields/#howto-custom-model-fields

Good luck!

answered 2008-12-02T18:21:16.663

Your Answer