Commits

Frank Becker committed 924aa25 Merge

Merged in koeart/pentasubmitter/development (pull request #3)

Comments (0)

Files changed (2)

src/submitter/models.py

         choices=STATUS_CHOICES,
         default=LIVE_STATUS,
     )
+#was the news item read?
+    was_read = models.BooleanField(
+        verbose_name=_("Show was read?"),
+        default=False,
+    )
 
     submit_date = models.DateTimeField(
         verbose_name=_("Publication Date"),

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()"""