[Django] #24342: Add an EnumField as standard

classic Classic list List threaded Threaded
32 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[Django] #24342: Add an EnumField as standard

Django
#24342: Add an EnumField as standard
----------------------------------------------+--------------------
     Reporter:  ovangle                       |      Owner:  nobody
         Type:  Uncategorized                 |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  1.7
     Severity:  Normal                        |   Keywords:
 Triage Stage:  Unreviewed                    |  Has patch:  0
Easy pickings:  0                             |      UI/UX:  0
----------------------------------------------+--------------------
 Add support for an `EnumField` which is backed by the corresponding `enum`
 type if one exists in the database engine (eg. mysql, postgres), with a
 default implementation of CharField in other database types and mapped to
 instances of the `enum.Enum` (or `enum34.Enum` in python 2).

--
Ticket URL: <https://code.djangoproject.com/ticket/24342>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.c9b71383b2bed838e712017e5e5fd078%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add an EnumField as standard

Django
#24342: Add an EnumField as standard
-------------------------------------+-------------------------------------
     Reporter:  ovangle              |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  new
    Component:  Database layer       |                  Version:  1.7
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  1
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by phalt):

 * needs_docs:   => 1
 * needs_tests:   => 1
 * needs_better_patch:   => 0


Comment:

 This sounds like a good idea considering the new `enum` type in Python
 3.4, but the `enum34` package would have to be added to Django's
 requirements to support backwards compatibility for versions < 3.4.

 Would this basically replace the need to use choices in `CharField`?

--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.d49dae8e0e39f6b3d5f0e6f47fbab21c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add an EnumField as standard

Django
In reply to this post by Django
#24342: Add an EnumField as standard
-------------------------------------+-------------------------------------
     Reporter:  ovangle              |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  1.7
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  1
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by phalt):

 * type:  Uncategorized => New feature


--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.df1d60fda645f582c666e5180960423e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add an EnumField as standard

Django
In reply to this post by Django
#24342: Add an EnumField as standard
-------------------------------------+-------------------------------------
     Reporter:  ovangle              |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  1.7
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  1
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by ovangle):

 For us, it has replaced the use of choices everywhere, although we don't
 use django forms (django only powers our REST API).  The enum names are
 stored in the database column and the implementation is agnostic to the
 enum values. Our implementation is currently postgres specific, but should
 be relatively easily to make generic.

 But there are (dubious) use cases supported by choices that can't be
 easily filled by enums (such as defining named groups of values in a
 `<select>` form element), so I don't think choices can be deprecated
 entirely. Perhaps an optional `form_groups` argument to `EnumField` would
 satisfy this use case if a decision to deprecate choices were made in
 response to this.

--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.198e834afd8bbe337335d666220d9cbb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add an EnumField as standard

Django
In reply to this post by Django
#24342: Add an EnumField as standard
-------------------------------------+-------------------------------------
     Reporter:  ovangle              |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  1
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by knbk):

 * version:  1.7 => master


--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.08e57914974dbe37437161c1143ed3d1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add an EnumField as standard

Django
In reply to this post by Django
#24342: Add an EnumField as standard
-------------------------------------+-------------------------------------
     Reporter:  ovangle              |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  1
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by timgraham):

 Could you please raise the issue on the DevelopersMailingList to see if
 there is consensus to add this to core?

--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.ba0b0a6a8a6c0539649973ea80ef39c4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add an EnumField as standard

Django
In reply to this post by Django
#24342: Add an EnumField as standard
-------------------------------------+-------------------------------------
     Reporter:  ovangle              |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by timgraham):

 * needs_docs:  1 => 0
 * needs_tests:  1 => 0
 * stage:  Unreviewed => Someday/Maybe


Comment:

 The [https://groups.google.com/d/topic/django-
 developers/whVe0_lZxs4/discussion mailing list thread] didn't reveal a
 strong consensus to add this to core at this time. My sense is that it
 might be more appealing once the minimum version of Python that Django
 supports has enums (3.4+).

 The mailing list thread also noted [https://github.com/hzdg/django-
 enumfields django-enumfields] as an active third-party implementation.

--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.309b631a53340f07dadd908981fa05de%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add EnumField model/form fields (was: Add an EnumField as standard)

Django
In reply to this post by Django
#24342: Add EnumField model/form fields
-------------------------------------+-------------------------------------
     Reporter:  ovangle              |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.640bf2a8555d536d060a66edc5bf4129%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add EnumField model/form fields

Django
In reply to this post by Django
#24342: Add EnumField model/form fields
-------------------------------------+-------------------------------------
     Reporter:  ovangle              |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by mmoreaux):

 Replying to [comment:7 timgraham]:

 > The mailing list thread also noted ​django-enumfields as an active
 third-party implementation.

 It's worth noting though that django-enumfields is CharField-based and
 doesn't use the database-specific enum types. So it's not a full
 replacement for the feature requested here.

--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.e5ef50f9b71743455adb0ed8586029fa%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add EnumField model/form fields

Django
In reply to this post by Django
#24342: Add EnumField model/form fields
-------------------------------------+-------------------------------------
     Reporter:  ovangle              |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by frewsxcv):

 If someone (maybe myself?) wrote a PostgreSQL specific `EnumField`, could
 it be added to `django.contrib.postgres`?

--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.48992f04c1efcefa6062e66603c9e296%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add EnumField model/form fields

Django
In reply to this post by Django
#24342: Add EnumField model/form fields
-------------------------------------+-------------------------------------
     Reporter:  ovangle              |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by frewsxcv):

 * cc: frewsxcv (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.dffc35d4657ea57590e4e17d6063cded%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add EnumField model/form fields

Django
In reply to this post by Django
#24342: Add EnumField model/form fields
-------------------------------------+-------------------------------------
     Reporter:  ovangle              |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by timgraham):

 The idea of a PostgreSQL-specific field was rejected on the mailing list
 thread link in comment:6. Quoting Josh Smeaton:

   I definitely do not like the idea of building a feature into
 contrib.postgres that could be built for the rest of the database backends
 too. It seems like a cop-out for doing less work, and really promotes one
 built in backend above others. contrib.postgres should be a place for
 postgres specific features, not for cutting out other backends.

--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:11>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.cb20d7743e2b71e3599654d8203e704e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add EnumField model/form fields

Django
In reply to this post by Django
#24342: Add EnumField model/form fields
-------------------------------------+-------------------------------------
     Reporter:  Thomas Stephenson    |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by André Cruz):

 * cc: andre@… (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:12>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.94825e55a692a691e2122e7b38dc4fc6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add EnumField model/form fields

Django
In reply to this post by Django
#24342: Add EnumField model/form fields
-------------------------------------+-------------------------------------
     Reporter:  Thomas Stephenson    |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Anton Agestam):

 Now that the next version of Django will drop support for Python versions
 <3.5, will pull requests for this feature be considered?

 Also thought it was worth mentioning https://github.com/5monkeys/django-
 enumfield although it seems like it's no longer maintained and lacks
 support from Django 1.8.

--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.c9463adf2e03ec465108d698502639e9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add EnumField model/form fields

Django
In reply to this post by Django
#24342: Add EnumField model/form fields
-------------------------------------+-------------------------------------
     Reporter:  Thomas Stephenson    |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Tim Graham):

 Yes, a patch would certainly help advance the conversation -- particularly
 if you can highlight the advantages of this as part of Django rather than
 as a third-party package.

--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:14>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.e40b35ad4b495965802c8a888b49561a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add EnumField model/form fields

Django
In reply to this post by Django
#24342: Add EnumField model/form fields
-------------------------------------+-------------------------------------
     Reporter:  Thomas Stephenson    |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mahmoud Hossam):

 I'm interested in implementing this feature, but I have a question
 regarding backend support.

 MySQL and PostgreSQL both have native types to support this feature, but
 SQLite and Oracle don't.

 How should we go about supporting this feature on those two databases?

--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:15>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.cc871c0516ea2fb124624444dca9b1af%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add EnumField model/form fields

Django
In reply to this post by Django
#24342: Add EnumField model/form fields
-------------------------------------+-------------------------------------
     Reporter:  Thomas Stephenson    |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Ashley Waite):

 I've implemented a POC that uses postgres and mysql enums (and will add a
 fail to char for others) handling all the migrations cases (changing enum,
 adding/removing values, etc).
 https://github.com/ashleywaite/django-more/tree/master/django_enum

 Is a pull to add these changes something that will be considered?

--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:16>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.333cf33f8543294cd3653375c23b5239%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add EnumField model/form fields

Django
In reply to this post by Django
#24342: Add EnumField model/form fields
-----------------------------------+------------------------------------
     Reporter:  Thomas Stephenson  |                    Owner:  nobody
         Type:  New feature        |                   Status:  new
    Component:  HTTP handling      |                  Version:  master
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------
Changes (by André Cruz):

 * component:  Database layer (models, ORM) => HTTP handling
 * stage:  Someday/Maybe => Accepted


Comment:

 Yes, please!

--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:17>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.e9fd58f15631c5d5c1a43f7d7a6f59fa%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add EnumField model/form fields

Django
In reply to this post by Django
#24342: Add EnumField model/form fields
-------------------------------------+-------------------------------------
     Reporter:  Thomas Stephenson    |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by André Cruz):

 * component:  HTTP handling => Database layer (models, ORM)
 * stage:  Accepted => Someday/Maybe


--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:18>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.721a1f16f591bc6a9bda09c2f936997d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #24342: Add EnumField model/form fields

Django
In reply to this post by Django
#24342: Add EnumField model/form fields
-------------------------------------+-------------------------------------
     Reporter:  Thomas Stephenson    |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tom Forbes):

 * cc: Tom Forbes (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/24342#comment:19>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.f5b2f294023ac68d7c4aa46ff22a6653%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
12