from django import template

from ..models import Testimonial


register = template.Library()


@register.assignment_tag
def random_testimonials(number):
    return Testimonial.objects.filter(active=True).order_by("?")[:number]


@register.assignment_tag
def random_testimonial():
    return Testimonial.objects.filter(active=True).order_by("?")[:1]


@register.assignment_tag
def testimonials(number):
    return Testimonial.objects.filter(active=True).order_by("-added")[:number]

@register.assignment_tag
def all_testimonial():
	return Testimonial.objects.filter(active=True).order_by("-added")
@@ -570,28 +570,29 @@
 ive=True).order_by(%22-added%22)
+%0A

add blank newline at the final of the line