mirror of
https://github.com/django/django.git
synced 2025-11-18 11:00:24 +00:00
Fixed #28377 -- Made combining form Media retain relative asset order.
Thanks Florian Apolloner, Mariusz Felisiak, and Tim Graham for reviews.
This commit is contained in:
parent
f86b6f351d
commit
c19b56f633
8 changed files with 154 additions and 42 deletions
|
|
@ -304,7 +304,7 @@ class InlineAdminFormSet:
|
|||
|
||||
@property
|
||||
def media(self):
|
||||
media = self.opts.media + self.formset.media
|
||||
media = self.formset.media + self.opts.media
|
||||
for fs in self:
|
||||
media = media + fs.media
|
||||
return media
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue