#24731: ManyToMany model clean validation of related fields
-------------------------------------+-------------------------------------
     Reporter:  blah73               |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Database layer       |                  Version:  1.8
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:  ManyToMany clean     |             Triage Stage:
  validation                         |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by nemesisdesign):

 Hi everybody,

 I also think this is an area for improvement in django.

 I've posted on django-developers: https://groups.google.com/forum/#!topic
 /django-developers/pQ-8LmFhXFg

 I quote the relevant bits:

 ----

 I spent a few hours working on this issue, I consider myself fluent with
 django and it's quite shocking I had to put such an amount of effort just
 to validate many2many relationships before they are saved to the database.

 IMHO it would be better if we could do one of these two (or even both)
 things:

 1. make this process easier in future django versions
 2. document the current best practice to solve this problem in current
 django to save people's time

 What do people you think?

 Here's my solution working with django 1.9:
 https://github.com/openwisp/django-netjsonconfig/compare/4082988...master

 What do you think of it? Can it be improved in some way?

 ----

 Keep up the good work
 Federico Capoano

--
Ticket URL: <https://code.djangoproject.com/ticket/24731#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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.3f1211bbfa11a903ae555d56c3afe76e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to