send request & projects with context processor
This commit is contained in:
parent
291873fffe
commit
be9f657e4b
3 changed files with 15 additions and 45 deletions
6
issue/context_processors.py
Normal file
6
issue/context_processors.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from issue.models import Project
|
||||
|
||||
|
||||
def projects(request):
|
||||
projects = Project.objects.all()
|
||||
return {'projects': projects}
|
Loading…
Add table
Add a link
Reference in a new issue