Google has not been my friend since I cannot really find anything with
Django MySQL ENUM and SET fields that explains one way or the other.
Maybe this should be addressed on
http://docs.djangoproject.com/en/dev/ref/databases/ so it could help
others with this problem.
TIA,
Justin
Karen Tracey wrote:
>
> SET as I recall required a little more work. It's also a CharField, but
> required some translation from the comma-delimited string value passed
> to/from the database layer to the Python set type I wanted to use for
> manipulating the data in my Python code. If I were writing the code
> today I'd probably look into creating a custom field
> (http://docs.djangoproject.com/en/dev/howto/custom-model-fields/) for a
> set, but back when I had to do this it was not so easy to write custom
> fields, so I did not go that route (and I have not had to revisit the
> code, so it stays as originally written despite there now maybe being a
> better way to do it...if it's not broken I'm not inclined to 'fix' it).
Is there any way you could post an example of what works for you with a
SET field? Pretty please:)
Justin