fix bug 866542 - Hide attachment table on document display page

No test included because checking for not-an-attachments-table doesn't seem logical.
To conform to PEP8 the indentation should be like this:

```python
response = self.client.get(reverse('wiki.edit_document', args=(rev.slug,),
                           locale=settings.WIKI_DEFAULT_LANGUAGE))
```