Source

dvd-collection / collection / templatetags / moviedb.py

Diff from to

collection/templatetags/moviedb.py

 def latest_movies():
     movie_list = Movie.objects.order_by('-added_on')[:9]
     return {'movie_list':movie_list, 'span':'4'}
+
+@register.simple_tag
+def total_movies():
+    return Movie.objects.all().count()