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

Tabbed Inline fields break on container.hasClass javascript error #580

Open
drewschulz opened this issue Jan 5, 2021 · 3 comments
Open

Comments

@drewschulz
Copy link

I'm running the following:
Django==3.1
djangorestframework==3.11.1
django-modeltranslation==0.16.1

in all my TranslationTabularInline calls I'm getting this error:
jquery.min.js:2 Uncaught TypeError: container.hasClass is not a function
at HTMLInputElement. (tabbed_translation_fields.js:353)
at Function.each (jquery.min.js:2)
at Object. (tabbed_translation_fields.js:322)
at Function.each (jquery.min.js:2)
at createTabularTabs (tabbed_translation_fields.js:313)
at HTMLDivElement. (tabbed_translation_fields.js:427)
at Function.each (jquery.min.js:2)
at S.fn.init.each (jquery.min.js:2)
at HTMLDocument. (tabbed_translation_fields.js:422)
at e (jquery.min.js:2)

I have tried changing the class Meta values to what is in the document, but nothing seems to make the tabs show up in the Inlines. Any help will be greatly appreciated. My admin forms are broken and I can't save any data on those forms.

@drewschulz
Copy link
Author

drewschulz commented Jan 5, 2021

It seems to work when I use TranslationStackedInline it's just TranslationTabularInline that breaks

@last-partizan
Copy link
Collaborator

Hmmm, this is already fixed in master, but somehow released version contains tabbed_translation_fields instead of tabbed_translation_fields.js, so your site is using old version.

I'll take a look.

@last-partizan
Copy link
Collaborator

Hmm, but after installing package filename is correct.

Please check your install, try reinstalling.

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