NoReverseMatch at /expenditure/expenses/3/approve/ Reverse for 'download_expense_attachment' not found. 'download_expense_attachment' is not a valid view function or pattern name. Request Method: GET Request URL: http://system.optinet.co.ke/expenditure/expenses/3/approve/ Django Version: 5.0.2 Exception Type: NoReverseMatch Exception Value: Reverse for 'download_expense_attachment' not found. 'download_expense_attachment' is not a valid view function or pattern name. Exception Location: /var/www/html/optinet_system/venv/lib/python3.10/site-packages/django/urls/resolvers.py, line 851, in _reverse_with_prefix Raised during: expenditure.views.approve_expense Python Executable: /var/www/html/optinet_system/venv/bin/python Python Version: 3.10.12 Python Path: ['/var/www/html/optinet_system', '/var/www/html/optinet_system', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/var/www/html/optinet_system/venv/lib/python3.10/site-packages'] Server time: Thu, 14 Aug 2025 17:05:26 +0300 Error during template rendering In template /var/www/html/optinet_system/templates/expenditure/approve_expense.html, error at line 173 Reverse for 'download_expense_attachment' not found. 'download_expense_attachment' is not a valid view function or pattern name. 163
164 {% for attachment in expense.attachments.all %} 165
166
167
168
169 170 {{ attachment.title }}
171 {{ attachment.get_attachment_type_display }} - {{ attachment.file_size_formatted }} 172
173