Add Document model method to check if a document exists in the storage backend

This commit is contained in:
Roberto Rosario
2011-02-06 22:44:16 -04:00
parent 1d70d68505
commit a3af46e25e
2 changed files with 6 additions and 3 deletions

View File

@@ -126,7 +126,8 @@ def document_view(request, document_id):
{'label':_(u'File mimetype'), 'field':'file_mimetype'},
{'label':_(u'Date added'), 'field':'date_added'},
{'label':_(u'Checksum'), 'field':'checksum'},
{'label':_(u'UUID'), 'field':'uuid'}
{'label':_(u'UUID'), 'field':'uuid'},
{'label':_(u'Exists in storage'), 'field':'exists'}
])
return render_to_response('generic_detail.html', {