<s> from django . shortcuts import get_object_or_404 <EOL> from . compat import User <EOL> def require_user ( view ) : <EOL> def inner ( request , username , * args , ** kwargs ) : <EOL> user = get_object_or_404 ( User , username = username ) <EOL> return view ( request , user , * args , ** kwargs ) <EOL> return inner </s>
