#NEWLINE# def _media( self ) : #NEWLINE# #INDENT# from django.conf import settings #NEWLINE# js = [ 'js/jquery.min.js' , 'js/jquery.init.js' , 'js/inlines.min.js' ] #NEWLINE# if self . prepopulated_fields : #NEWLINE# #INDENT# js . append ( 'js/urlify.js' ) #NEWLINE# js . append ( 'js/prepopulate.min.js' ) #NEWLINE# #UNINDENT# if ( url . filter_vertical or self . filter_horizontal ) : #NEWLINE# #INDENT# js . extend ( [ 'js/SelectBox.js' , 'js/SelectFilter2.js' ] ) #NEWLINE# #UNINDENT# return forms . Media ( js = [ '{0}{1}' . format ( settings . ADMIN_MEDIA_PREFIX , url ) for url in js ] )