django-modeltranslation
django-modeltranslation copied to clipboard
error in tabbed_translation_fields
@admin.register(SMSText)
class SMSTextSingletonInline(SingletonModelAdmin, TranslationAdmin):
class Media:
js = (
'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js',
'http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js',
'modeltranslation/js/tabbed_translation_fields.js',
)
css = {
'screen': ('modeltranslation/css/tabbed_translation_fields.css',),
}
I expected all fields to be in masonry but one field is out
Well, that's strange. Does it happens when you not overriding Media?
Well, that's strange. Does it happens when you not overriding Media?
@register(SMSText)
class SMSTextOptions(TranslationOptions):
fields = (
'replace_decoration', 'removal_session', 'course_evaluation',
'happy_birthday', 'healing_tools', 'pin', 'leave_review',
'prepayment', 'prepayment_description', 'before_session',
'vip', 'create_certificate', 'customer_balance', 'start_studing',
'payment_session', 'payment_session_invoice', 'send_info_student',
)
exactly the same mistake
but it's fine for that
I don't have time to debug this, but you can try to find a fix yourself and make a PR.