Removed getattr from instances of Document (doesn't fit model).