Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions django_admin_row_actions/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,11 @@ class AdminRowActionsMixin(object):

@property
def media(self):
css = super(AdminRowActionsMixin, self).media._css
css['all'] = css.get('all', [])
css['all'].extend(["css/jquery.dropdown.min.css"])

js = super(AdminRowActionsMixin, self).media._js
js.extend(["js/jquery.dropdown.min.js",])

media = forms.Media(
css=css, js=js
return super(AdminRowActionsMixin, self).media + forms.Media(
css={'all': ["css/jquery.dropdown.min.css"]},
js=["js/jquery.dropdown.min.js"],
)

return media

def get_list_display(self, request):
self._request = request
list_display = super(AdminRowActionsMixin, self).get_list_display(request)
Expand Down