def _get_media(self):
lang = get_language()<EOL>select2_js = (settings.SELECT2_JS,) if settings.SELECT2_JS else ()<EOL>select2_css = (settings.SELECT2_CSS,) if settings.SELECT2_CSS else ()<EOL>i18n_name = SELECT2_TRANSLATIONS.get(lang)<EOL>if i18n_name not in settings.SELECT2_I18N_AVAILABLE_LANGUAGES:<EOL><INDENT>i18n_name = None<EOL><DEDENT>i18n_file = ('<STR_LIT>' % (settings.SELECT2_I18N_PATH, i18n_name),) if i18n_name else ()<EOL>return forms.Media(<EOL>js=select2_js + i18n_file + ('<STR_LIT>',),<EOL>css={'<STR_LIT>': select2_css}<EOL>)<EOL>
Construct Media as a dynamic property.

.. Note:: For more information visit
    https://docs.djangoproject.com/en/stable/topics/forms/media/#media-as-a-dynamic-property