django-modeltranslation icon indicating copy to clipboard operation
django-modeltranslation copied to clipboard

error in tabbed_translation_fields

Open demoh2019 opened this issue 2 years ago • 3 comments

Снимок экрана 2023-07-11 в 05 57 11

@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

demoh2019 avatar Jul 11 '23 03:07 demoh2019

Well, that's strange. Does it happens when you not overriding Media?

last-partizan avatar Jul 11 '23 05:07 last-partizan

Well, that's strange. Does it happens when you not overriding Media? Снимок экрана 2023-07-11 в 14 22 34

@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

Снимок экрана 2023-07-11 в 14 21 45

but it's fine for that

demoh2019 avatar Jul 11 '23 12:07 demoh2019

I don't have time to debug this, but you can try to find a fix yourself and make a PR.

last-partizan avatar Jul 12 '23 05:07 last-partizan