Hi,
Try using get_queryset() instead of queryset().
Collin
On Tuesday, November 18, 2014 8:02:12 AM UTC-5, Neeraj Sharma wrote:
>
> Hi,
>
> I want to override django mptt admin queryset, i want to filter the the
> queryset.
> I also tried the following method in admin.py but its not working.
Hi,
I want to override django mptt admin queryset, i want to filter the the
queryset.
I also tried the following method in admin.py but its not working.
def queryset(self, request):
qs = super(DataField_NEWAdmin, self).queryset(request)
return qs.filter(game_event__id=10)
2 matches
Mail list logo