Added related_name to Document and DocumentVersion to fix integration with other apps.