mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
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.
This commit is contained in:
committed by
Tim Graham
parent
a2c3c2a1e2
commit
0894643e40
@@ -288,6 +288,7 @@ class ChildInline(admin.StackedInline):
|
||||
class ParentAdmin(admin.ModelAdmin):
|
||||
model = Parent
|
||||
inlines = [ChildInline]
|
||||
save_as = True
|
||||
|
||||
list_editable = ('name',)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user