You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just installed django-client-admin per the README instructions. It works on a basic level -- it's taken over rendering my admin pages, with proper styling and everything. However, it won't display nested inline menus at all.
Not only can I not see the nested inline, but I can't submit the admin form without getting a ValidationError ([u'ManagementForm data is missing or has been tampered with']). Some excerpts from the stacktrace:
/Users/cbrink/.virtualenvs/cci/lib/python2.6/site-packages/client_admin/admin.py in change_view
self.add_recursive_inline_formsets(request, inline, formset, obj) ...
/Users/cbrink/.virtualenvs/cci/lib/python2.6/site-packages/client_admin/admin.py in add_recursive_inline_formsets
self.add_recursive_inline_formsets(request, recursive_inline, recursive_formset) ...
/Users/cbrink/.virtualenvs/cci/lib/python2.6/site-packages/client_admin/admin.py in add_recursive_inline_formsets
for form in formset.forms: ...
from client_admin.admin import ClientModelAdmin \
, GroupedInline \
, TabularInline \
, StackedInline
class MySecondLevelInline(TabularInline):
model = MySecondLevelModel
class MyFirstLevelInline(StackedInline):
model = MyFirstLevelModel
inlines = [MySecondLevelInline]
class MyAdmin(ClientModelAdmin):
inlines = [MyFirstLevelInline]
I've tried all combinations of StackedInline and TabularInline; all fail the same way.
I've tried manually creating an instance of the nested inline's model, hoping that would force it to render the nested formset -- I could more easily start debugging this if I could see it work properly in one scenario. But no luck.
The text was updated successfully, but these errors were encountered:
Thanks for the info. I suspect that this bug is caused by some changes in Django 1.6+ inlines.js code. The missing management form probably means that the javascript is not properly copying and replacing ids when it duplicates the hidden inline fieldsets. I will go through the overridden file to see if anything needs to be updated, but I won't be able to get to it today.
I've just installed django-client-admin per the README instructions. It works on a basic level -- it's taken over rendering my admin pages, with proper styling and everything. However, it won't display nested inline menus at all.
Not only can I not see the nested inline, but I can't submit the admin form without getting a
ValidationError
([u'ManagementForm data is missing or has been tampered with']
). Some excerpts from the stacktrace:Has anyone else run into similar behavior?
Here's my
settings.INSTALLED_APPS
:The relevant slice of
urls.urlpatterns
:The relevant bits of
myapp.admin
:I've tried all combinations of
StackedInline
andTabularInline
; all fail the same way.I've tried manually creating an instance of the nested inline's model, hoping that would force it to render the nested formset -- I could more easily start debugging this if I could see it work properly in one scenario. But no luck.
The text was updated successfully, but these errors were encountered: