@register.simple_tag(takes_context=True)<EOL>def placeFavicon(context):
fav = Favicon.objects.filter(isFavicon=True).first()<EOL>if not fav:<EOL><INDENT>return mark_safe('<STR_LIT>')<EOL><DEDENT>html = '<STR_LIT>'<EOL>for rel in config:<EOL><INDENT>for size in sorted(config[rel], reverse=True):<EOL><INDENT>n = fav.get_favicon(size=size, rel=rel)<EOL>html += '<STR_LIT>' % (<EOL>n.rel, n.size, n.size, n.faviconImage.url)<EOL><DEDENT><DEDENT>default_fav = fav.get_favicon(size=<NUM_LIT:32>, rel='<STR_LIT>')<EOL>html += '<STR_LIT>' % (<EOL>default_fav.rel, default_fav.size, default_fav.size, default_fav.faviconImage.url)<EOL>return mark_safe(html)<EOL>
Gets Favicon-URL for the Model.

Template Syntax:

    {% placeFavicon %}