eav model, non eav inline

66 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Lukas Lehner

ungelesen,
20.02.2012, 11:59:0220.02.12
an 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
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten