#33528: "_save" in request.POST war newer used in ModelAdmin 
Change_view/Add_view
-------------------------------------+-------------------------------------
               Reporter:  Maxim      |          Owner:  nobody
  Danilov                            |
                   Type:  New        |         Status:  new
  feature                            |
              Component:             |        Version:  4.0
  contrib.admin                      |
               Severity:  Normal     |       Keywords:  modeladmin, save
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 in django.contrib.admin.options ModelAdmin Change_view/Add_view exists
 "_saveasnew" in request.POST
 But don't exists work with "_save"

 i can imagine it in _changeform_view, row 1598:

 {{{
 if all_valid(formsets) and form_validated:
     if "_saveasnew" in request.POST or "_save" in request.POST or ...
 _addanother or _continue.... :
 }}}

 What i can achieve with that:
 if '_save' is omitted, i can see in response without call save model and
 save fieldsets that all my forms and formsets are valid.

 Right now it is not possible: or not valid, or save all and call
 self.response_{add or change}.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33528>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.73d1401bbc3154ad6da08b16003174ba%40djangoproject.com.

Reply via email to