Commits

Anonymous committed 0ed5e70

Fixed ordering, fixes for template

Comments (0)

Files changed (2)

templates/mediatr/item_detail.html

 {% extends "base.html" %}
 
 {% block stream %}
-{% if object.stream %}
+{% if object.stream_id %}
 <div id="stream-meta">
 <h1><a href="{{ object.stream.get_absolute_url }}">{{ object.stream.name }}</a></h1>
 <p>{{ object.stream.description|safe }}</p>
     """
     stream = get_object_or_404(Stream, slug=slug)
     params = dict()
-    params['queryset'] = stream.items.filter(publish_date__lte=datetime.now())
+    params['queryset'] = stream.items.filter(publish_date__lte=datetime.now()).order_by('-publish_date')
     params['paginate_by'] = settings.PAGINATE_BY
     params['extra_context'] = {'stream': stream}
     return object_list(request, **params)