Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in tabbed_translation_fields #694

Open
demoh2019 opened this issue Jul 11, 2023 · 3 comments
Open

error in tabbed_translation_fields #694

demoh2019 opened this issue Jul 11, 2023 · 3 comments

Comments

@demoh2019
Copy link

Снимок экрана 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

@last-partizan
Copy link
Collaborator

last-partizan commented Jul 11, 2023

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

@demoh2019
Copy link
Author

demoh2019 commented Jul 11, 2023

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

@last-partizan
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants