Re: Named Groups for Enumeration Types

2022-08-24 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Steven I agree that grouped choices would be nice to support in the enum types. Thank you for taking a look at this. I'm not sure about either of your proposed syntaxes. They both seem error prone and unclear to me. I propose instead using a separate grouping attribute: class Media(models.Tex

Named Groups for Enumeration Types

2022-08-03 Thread Steven Johnson
Hello all, In my project I recently wanted to group choices, and have gotten used to the Enumeration Types Django provides. I noticed Django currently does not support named groups for these. So, I've implemented them in two ways: Option A) Ugly, but simple changes to Django class Media(models