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-admin-Django/

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'):
            return qs.filter(country = request.GET.get('country_id'))

-- 
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.

Reply via email to