def user_redirects(user):
 return Document.objects.filter(revisions__creator=user).filter(html__startswith='<p>REDIRECT <a').distinct()

def user_redirects ( user ) : return Document . objects . filter ( revisions__creator = user ) . filter ( html__startswith = '<p>REDIRECT <a' ) . distinct ( )
return the redirects a user has contributed to .