From d683b994c2c141e60096e4598caffd58ea6ad030 Mon Sep 17 00:00:00 2001 From: Shgck Date: Tue, 2 Feb 2016 19:11:40 +0100 Subject: [PATCH] Fix unnamed articles in admin site --- news/admin.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/news/admin.py b/news/admin.py index d3e8a09..6e3b554 100644 --- a/news/admin.py +++ b/news/admin.py @@ -3,4 +3,8 @@ from django.contrib import admin from news.models import Article -admin.site.register(Article) +class ArticleAdmin(admin.ModelAdmin): + list_display = ("title", "author") + + +admin.site.register(Article, ArticleAdmin)