

def formfield_for_foreignkey(self, db_field, request, **kwargs):
    if ((db_field.name == 'lifestream') and (not request.user.is_superuser)):
        kwargs['queryset'] = Lifestream.objects.filter(user=request.user)
        return kwargs.formfield(**kwargs)
    return super(FeedAdmin, self).formfield_for_foreignkey(db_field, request, **kwargs)

dataset/ETHPy150Open IanLewis/django-lifestream/lifestream/admin.py FeedAdmin.formfield_for_foreignkey/VarMisuse@58/76 `db_field`->`kwargs`