1. Andy Mikhailenko
  2. eav-django

Commits

Andy Mikhailenko  committed 9d6979a Merge

Merged in TigorC/eav-django (pull request #7) — finally settled down the fix. :)

  • Participants
  • Parent commits 5d99ad8, 9df536b
  • Branches default

Comments (0)

Files changed (1)

File eav/admin.py

View file
  • Ignore whitespace
 
         adminform = helpers.AdminForm(form, fieldsets,
                                       self.prepopulated_fields)
-        inline_media = [f.media for f in formset]
+        inline_media = reduce( lambda x, y: x.media + y.media, formset )
+
         media = mark_safe(self.media + adminform.media + inline_media)
         context.update(adminform=adminform, media=media)