Пример #1
0
def updates(request, tags):
    try:
        count = int(request.GET.get('count'))
    except (TypeError, ValueError):
        count = 12
    return render_to_response('updates.html', {
        'items': top(count, tags),
        'count': count,
        'tags': tags,
    })
Пример #2
0
 def items(self):
     return top(8)