mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-25 12:43:45 +00:00
Do generate CSS class name for fields starting with an underscore (still seems to work with two-part codes).
This commit is contained in:
parent
1d82f61da8
commit
715b13a1e9
1 changed files with 0 additions and 2 deletions
|
|
@ -53,8 +53,6 @@ def build_css_class(localized_fieldname, prefix=''):
|
|||
"""
|
||||
bits = localized_fieldname.split('_')
|
||||
css_class = ''
|
||||
if bits[0] == '':
|
||||
return ''
|
||||
if len(bits) == 1:
|
||||
css_class = str(localized_fieldname)
|
||||
elif len(bits) == 2:
|
||||
|
|
|
|||
Loading…
Reference in a new issue