Fix unnamed articles in admin site
This commit is contained in:
parent
9dbe41d825
commit
d683b994c2
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue