Commits

koeart committed 3a18f77

View "get_read_news" added.

Gives you the news, filtered if they were read or not, orderd like normal news items

Comments (0)

Files changed (1)

src/submitter/views.py

                               context_instance=RequestContext(request)
                              )
 
+def get_read_news(request):
+    """Returns a list of all news read in the show"""
+    return render_to_response('submitter/news_entry_index.html',
+            {'news_entry_list': NewsEntry.objects.filter(
+                was_read=True).order_by(
+                    '-submit_date')},
+            context_instance=RequestContext(request)
+            )
+
 def news_per_category(request, category_slug=None):
     """Return HTTP response of all NewsEntry() per NewsCategory()"""