django-nested-inline icon indicating copy to clipboard operation
django-nested-inline copied to clipboard

object has no attribute 'queryset'

Open actongorton opened this issue 10 years ago • 5 comments
trafficstars

Vanilla install with Django 1.8 using examples in docs gets 'LevelOneInline' object has no attribute 'queryset'.

actongorton avatar Apr 15 '15 20:04 actongorton

In admin.py with Django 1.8(1.7 is ok),

nested_inline.queryset(request)
inline.queryset(request)

raise error. There are 6 calls.

I changed all to

nested_inline.get_queryset(request)
inline.get_queryset(request)

and it works.

chawchaw avatar Apr 23 '15 07:04 chawchaw

@chawchaw Could you provide us with more details on how you solved this issue?

GabKlein avatar May 04 '15 13:05 GabKlein

@GabKlein There is a pull request about this issue. Check it following. https://github.com/s-block/django-nested-inline/pull/32/files

chawchaw avatar May 05 '15 08:05 chawchaw

did this get pulled?

symbiosdotwiki avatar Aug 17 '15 20:08 symbiosdotwiki

The support for django 1.8 was added in another pull request. The latest version works well for me, but it's not available via pip yet.

YaderV avatar Aug 20 '15 17:08 YaderV