Skip to content

Commit

Permalink
Update indigo_app/views/documents.py
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Kempe <greg@kempe.net>
  • Loading branch information
goose-life and longhotsummer authored Jan 16, 2025
1 parent 6bb4931 commit 038a245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indigo_app/views/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def get(self, request, *args, **kwargs):
document = self.get_object()
self.eid = self.kwargs.get('eid')
self.provision_xml = document.get_provision_xml(self.eid)
if not self.provision_xml:
if self.provision_xml is None:
messages.error(request, _("No provision with this id found: '%(eid)s'") % {"eid": self.eid})
return redirect('choose_document_provision', doc_id=document.id)
return super().get(request, *args, **kwargs)
Expand Down

0 comments on commit 038a245

Please sign in to comment.