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

nested.js? #2

Open
jws325 opened this issue Mar 11, 2013 · 7 comments
Open

nested.js? #2

jws325 opened this issue Mar 11, 2013 · 7 comments

Comments

@jws325
Copy link

jws325 commented Mar 11, 2013

After installing your app, I get a 404 for http://(mywebsite)/media/admin/js/nested.js
I also get about 12 of these messages in the js console:
TypeError: Object # has no method 'tabularFormset'

Could these errors be due to the fact that your .js file is named inline.js instead of nested.js?

@alexwhittemore
Copy link
Contributor

Despite all the other myriad problems I seem to have, I haven't run into this. Do you have more specifics? Might you have just not added the app to installed apps?

@OscarPDR
Copy link

OscarPDR commented May 8, 2013

I'm having the same problem back here.

I can run the code and access the admin code, but it fails to load nested.js

I can't manage to have the '+' button to add new instances of objects, don't know if this has something to do with not being available to load this JavaScript file.

Thank you for attending the issue ;-)

@OscarPDR
Copy link

Definitely, a nested.js file is missing in the static/admin/js folder, which is in charge of defining the 'stackedFormset' and 'tabularFormset' methods.

Are you intending to solve the bug soon?

Thank you for caring

@laucia
Copy link

laucia commented May 31, 2013

You can hotfix this by overriding the template admin and css and creating the nested.js from a copy of inlines.min.js which can be found in the package.

Refer to https://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates to know how to set and override 3rd party statics / templates.

@christianpbrink
Copy link

@laucia, can you explain what you mean about overriding the template admin and css? I ran
cp /Users/myhome/.virtualenvs/myproj/src/django-nested-inlines/nested_inlines/static/admin/js/inlines.js /Users/myhome/.virtualenvs/myproj/src/django-nested-inlines/nested_inlines/static/admin/js/nested.js
and while the attempt to load nested.js no longer fails on a 404, nothing changes in terms of the admin page's behavior.

Thanks!

@laucia
Copy link

laucia commented Jul 15, 2013

I have a 3rd_party/static/admin in my project and copied it in a js subdirectorie but yeah basically i did the same.
It solved some formset issue with 3-level deep inlines but i didn't take anytime to look into the code to see what's the use sry.
But feel free to enlighten us if you do !

@bee-keeper
Copy link

Pull request #13 fixes this issue although it was never accepted.

@Soaa- Thanks for this lovely Django addition - are you no longer interested in maintaining it? It seems such a pity to let it die like this...

PetrDlouhy pushed a commit to PetrDlouhy/django-nested-inlines that referenced this issue Apr 18, 2017
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

6 participants