#27643: ModelAdmin.save_as is ignored
------------------------------------------+------------------------
               Reporter:  Flavio Curella  |          Owner:  nobody
                   Type:  Bug             |         Status:  new
              Component:  contrib.admin   |        Version:  1.10
               Severity:  Normal          |       Keywords:
           Triage Stage:  Unreviewed      |      Has patch:  0
    Needs documentation:  0               |    Needs tests:  0
Patch needs improvement:  0               |  Easy pickings:  0
                  UI/UX:  0               |
------------------------------------------+------------------------
 I have the following model:

 {{{
 from django.db import models


 # Create your models here.
 class MyModel(models.Model):
     name = models.CharField(max_length=50)
 }}}

 and a basic admin class for the model:

 {{{
 from django.contrib import admin

 from .models import MyModel


 # Register your models here.
 class MyModelAdmin(admin.ModelAdmin):
     save_as = True


 admin.site.register(MyModel, MyModelAdmin)

 }}}

 According to the documentation
 
(https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_as)
 I should see three buttons: 'Save', 'Save and continue editing' and 'Save
 as new', but I still get 'Save', 'Save and continue editing' and 'Save and
 add another'

--
Ticket URL: <https://code.djangoproject.com/ticket/27643>
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/051.1e2bf55293101b3fe26847cfe0991352%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to