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

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