Commits

imbolc committed 128edcd

fix

  • Participants
  • Parent commits 4d075b4

Comments (0)

Files changed (1)

File article/views.py

         last_article = Article.objects_published.filter(
                 is_starred=True).order_by('-created')[0]
     except IndexError:
-        last_article = Article.objects_published.order_by
-        ('-date_published')[0]
+        last_article = Article.objects_published.order_by('-date_published')[0]
     except IndexError:
         last_article = None
     categories = Category.objects.all()