Changes between Initial Version and Version 1 of Ticket #28357, comment 2
- Timestamp:
- Mar 11, 2019, 8:56:53 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28357, comment 2
initial v1 2 2 3 3 The `prepopulated_fields` will work for the `extra` forms specified, in the inline, but any additional forms added via "Add another <Model>" will not run the js that pre populates the field. 4 5 6 7 {{{ 8 class ArticleInline(admin.StackedInline): 9 model = Article 10 extra = 2 11 # will only prepopulate the ``slug`` field for the 2 ``extra`` forms 12 # in the formset 13 prepopulated_fields = {"slug": ("title",)} 14 }}} 15 4 16 5 17 Verified this issue is happening in 2.1 and 1.11 and attached a minimal project that reproduces the issue.