diff options
| author | Adam Zapletal <adamzap@gmail.com> | 2015-04-24 20:31:26 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-05-02 19:41:10 -0400 |
| commit | 0894643e40327e48397573b7844585618200442b (patch) | |
| tree | 12d7083c0551103a0fa90191cc832368fe2e1a3d /tests/admin_views/admin.py | |
| parent | a2c3c2a1e26be4451c5f28e60725bd36e1cb2b5c (diff) | |
Fixed #23387 -- Kept "Save as new" button after validation errors in admin.
When "Save as new" is chosen and errors occur, only show the "Save as new"
button and not the other save buttons.
Thanks to Tino de Bruijn for doing the real work on this fix.
Diffstat (limited to 'tests/admin_views/admin.py')
| -rw-r--r-- | tests/admin_views/admin.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/admin_views/admin.py b/tests/admin_views/admin.py index d070e5a55e..aa040138e0 100644 --- a/tests/admin_views/admin.py +++ b/tests/admin_views/admin.py @@ -288,6 +288,7 @@ class ChildInline(admin.StackedInline): class ParentAdmin(admin.ModelAdmin): model = Parent inlines = [ChildInline] + save_as = True list_editable = ('name',) |
