1
0
Fork 0

Fix unnamed articles in admin site

This commit is contained in:
Shgck 2016-02-02 19:11:40 +01:00
parent 9dbe41d825
commit d683b994c2

View file

@ -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)