Override Django Mptt Admin Queryset

2014-11-18 Thread Neeraj Sharma
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)

Ovreeride django mptt admin queryset

2014-11-18 Thread Neeraj Sharma
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)

override django mptt admin querset

2014-11-18 Thread Neeraj Sharma
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)

Re: Django MPTT Admin

2014-11-11 Thread Neeraj Sharma
Thanx for your quick response Matthias Kestenholz, but i actually i want to use MPTT Admin as an inline form, code you have written will work as a normal admin form On Thursday, 26 February 2009 15:12:15 UTC+5:30, Matthias Kestenholz wrote: > > Hey, > > A topic which comes up on this list from

Re: Django MPTT Admin

2014-11-11 Thread Neeraj Sharma
Thanx for your quick response Matthias Kestenholz, but i actually i want to use MPTT Admin as an inline form, code you have written will work as a normal admin. On Thursday, 26 February 2009 15:12:15 UTC+5:30, Matthias Kestenholz wrote: > > Hey, > > A topic which comes up on this list from time

Re: Django MPTT Admin

2014-11-11 Thread Neeraj Sharma
*How to use Django Mttp Admin as an Inline in admin.py* *?* On Thursday, 26 February 2009 15:12:15 UTC+5:30, Matthias Kestenholz wrote: > > Hey, > > A topic which comes up on this list from time to time is an automatic > admin interface for django-mptt. I'd like to advertise a piece of code > we