processors.py 165 B

12345678910
  1. from .models import Link
  2. def ctx_dict(request):
  3. ctx = {}
  4. links = Link.objects.all()
  5. for link in links:
  6. ctx[link.key] = link.url
  7. return ctx