mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 17:17:26 +01:00
Fixed a few minor issues.
This commit is contained in:
parent
25a6aa909b
commit
7c589f71a4
5 changed files with 21 additions and 28 deletions
|
|
@ -198,7 +198,7 @@ class DocumentAdmin(CommonAdmin):
|
|||
doc = Document.objects.get(id=object_id)
|
||||
extra_context['download_url'] = doc.download_url
|
||||
extra_context['file_type'] = doc.file_type
|
||||
if self.document_queue and int(object_id) in self.document_queue:
|
||||
if self.document_queue and object_id and int(object_id) in self.document_queue:
|
||||
#There is a queue of documents
|
||||
current_index = self.document_queue.index(int(object_id))
|
||||
if current_index < len(self.document_queue) - 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue