<reponame>ipedromotta/blog-django
from .models import Link

def ctx_social(request):
    ctx_dict = {}
    links = Link.objects.all()
    for link in links:
        ctx_dict[link.chave] = link.url
    return ctx_dict    
from .models import Link

def ctx_social(request):
    ctx_dict = {}
    links = Link.objects.all()
    for link in links:
        ctx_dict[link.chave] = link.url
    return ctx_dict