Hi Ok, I updated as advised.
views.py def projectdetail(request): projectExpenseDetails = Expense.objects.select_related('project').all() return render(request, 'busprojectdetail.html', {'project': project, 'expense_list': projectExpenseDetails}) I get new error Exception Type: NameError Exception Value: name 'project' is not defined Exception Location: /Users/ProductionEnv/Desktop/test/test1/dev/core/views.py in projectdetail, line 238 Please advise? Best, Kean On 6 Sep 2019, at 21:19, Bhoopesh sisoudiya <bhoop23...@gmail.com> wrote: > projectExpnseDetails -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/86E3CF35-2148-4C36-A503-5413BE568F95%40gmail.com.