#28624: Add attribute to let a ManyToMany field behave like a list instead of a 
set
-------------------------------------+-------------------------------------
     Reporter:  david simmen         |                    Owner:  david
                                     |  simmen
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by david simmen):

 * status:  closed => new
 * resolution:  wontfix =>


Comment:

 So I went along and used the through functionality for this and run into
 the following issues
 - i had to add a model calss with just two foreing keys which clutters up
 my code
 - I lost all the add create functionality which also makes the code more
 complex and less understandable

 so from an architectural point ov view it would be way more beautiful to
 have a parameter on the field

 also I do not understand why it is a set by default since I could not find
 a definition for many to many which says it has to be a set, so why use a
 more limiting collection?

 and last but not least i think there are many usecases where a many to
 many is a list for example with order and products where a product can be
 many times in the same order, and that is not an out of the world scenario

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28624#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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.8962400613cd670e39a48244ce274429%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to