eav model, non eav inline

66 views
Skip to first unread message

Lukas Lehner

unread,
Feb 20, 2012, 11:59:02 AM2/20/12
to eav-d...@googlegroups.com
Hi all,

I am witnessing a rather strange error.
code snippet:

class ModelInline(admin.TabularInline):
model = models.m_normal

class ModelEAV(eav.admin.BaseEntityAdmin):
form = eav.forms.BaseDynamicEntityForm
model = mdoles.m_eav
inlines = [ModelInline]

1/ EAV model
2/ non EAV model that is inlined in 1/ in admin

Things work fine (I can see the inlined values and can delete them) except that in admin, the inlines cannot be added, because the "add" link is missing. That is caused by javascript exception "Uncaught TypeError: Object #<Object> has no method 'formset'", which is caused by missing '/static/admin/js/inlines.min.js'

That said, somehow a non inline code is rendered and therefore the js file missing.
Anyone hit by the same issue?

Thanks in advance,
Lukas
Reply all
Reply to author
Forward
0 new messages