Skip to content

Commit bee1cc0

Browse files
committed
fix field alignment in admin
1 parent b94b0cf commit bee1cc0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

select_url_field/choice_with_other.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ def decompress(self, value):
3030

3131
def format_output(self, rendered_widgets):
3232

33-
"""Format the output by substituting the "other" choice into the first widget."""
33+
"""Format the output by substituting the "other" choice into the first widget"""
3434

35-
return '<div class="choice_with_other_wrapper">%s %s</div>' % \
36-
(rendered_widgets[0], rendered_widgets[1])
35+
return u'<div class="choice_with_other_wrapper" style="display: table-row;">{} {}</div>'.format(
36+
rendered_widgets[0],
37+
rendered_widgets[1],
38+
)
3739

3840
def _media(self):
39-
js_list = ['%sadmin/choice_with_other.js' % settings.STATIC_URL, ]
40-
return forms.Media(js=js_list)
41-
41+
return forms.Media(js=('admin/choice_with_other.js',))
4242
media = property(_media)
4343

4444

0 commit comments

Comments
 (0)