from django import template
from news.models import CarNews
register = template.Library()


@register.inclusion_tag('s_news.html')
def news():
    news = CarNews.objects.all().order_by('-created')[0:4]
    return {'news': news}

e8db0baf78a3e71b67a4568a947d3e2416884f4a
<mask token>

<mask token>


@register.inclusion_tag('s_news.html')
def news():
    news = CarNews.objects.all().order_by('-created')[0:4]
    return {'news': news}

<mask token>
register = template.Library()


@register.inclusion_tag('s_news.html')
def news():
    news = CarNews.objects.all().order_by('-created')[0:4]
    return {'news': news}

from django import template
from news.models import CarNews
register = template.Library()


@register.inclusion_tag('s_news.html')
def news():
    news = CarNews.objects.all().order_by('-created')[0:4]
    return {'news': news}
