Changes between Initial Version and Version 1 of Ticket #28357, comment 2


Ignore:
Timestamp:
Mar 11, 2019, 8:56:53 PM (6 years ago)
Author:
Ryan Siemens

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28357, comment 2

    initial v1  
    22
    33The `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{{{
     8class 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
    416
    517Verified this issue is happening in 2.1 and 1.11 and attached a minimal project that reproduces the issue.
Back to Top