website/src/ctfs/context_processors.py

6 lines
128 B
Python

from .models import Category
def cat_processor(request):
cat = Category.objects.order_by('name')
return {'cats' : cat}