1👍
You shouldn’t do this via the URL. You should modify the queryset for the admin so that it returns the objects you want.
class MyModelAdmin(admin.ModelAdmin):
def get_queryset(self):
qs = super(MyModelAdmin, self).get_queryset()
if some_condition: # not sure what it depends on - maybe request.user?
qs = qs.filter(vendor__isnull=True)
return qs
Source:stackexchange.com