mirror of
https://github.com/ConjureETS/site-2015.git
synced 2026-03-24 04:21:23 +00:00
10 lines
273 B
Python
10 lines
273 B
Python
from django.contrib import admin
|
|
from blog import models, forms
|
|
|
|
|
|
@admin.register(models.Article)
|
|
class ArticleAdmin(admin.ModelAdmin):
|
|
form = forms.ArticleAdminForm
|
|
fields = ['title', 'author', 'text', 'photo']
|
|
list_display = ['title', 'author', 'created_at']
|