1
0
Fork 0
IdreXyz/news/admin.py

11 lines
190 B
Python

from django.contrib import admin
from news.models import Article
class ArticleAdmin(admin.ModelAdmin):
list_display = ("title", "author")
admin.site.register(Article, ArticleAdmin)