On Mar 24, 5:30 pm, adam <masayoshi.ada...@gmail.com> wrote: > derek > > i want to do the same thing. > > first, the site below mentioned about > filtering.http://patrickbeeson.com/blog/2008/aug/11/how-create-user-specific-ad... > > in this time, you have to give country_id as a request parameter by > changing link url. > link url is like this: .../region?country_id=1 > > and admin class is like this: > > class RegionAdmin(admin.Modeladmin): > ... > def queryset(self, request): > qs = super(ReqionAdmin, self).queryset(request) > if request.GET.get('country_id'):
Unfortunately, when I try this, my application call to display the list of regions i.e. /admin/edit/region/ gets redirected to /admin/edit/region/?e=1 and that gives me a message in the browser display: "Something's wrong with your database installation. Make sure the appropriate database tables have been created, and make sure the database is readable by the appropriate user." I'm not sure where this "?e=1" comes from? Maybe something else is need to be set first? Thanks Derek -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.