from django.contrib import admin
from .models import Post

#http://www.djangobook.com/en/2.0/chapter06.html

class PostAdmin(admin.ModelAdmin):
	list_display = ('title', 'author', 'published_date' )
	list_filter = ('published_date',)
	date_hierarchy = 'published_date'
	ordering = ('-published_date',)

admin.site.register(Post, PostAdmin)


2ce49ed43e56176298fde5ed999701d303669fa6
<mask token>

<mask token>


class PostAdmin(admin.ModelAdmin):
    list_display = 'title', 'author', 'published_date'
    list_filter = 'published_date',
    date_hierarchy = 'published_date'
    ordering = '-published_date',


<mask token>

<mask token>


class PostAdmin(admin.ModelAdmin):
    list_display = 'title', 'author', 'published_date'
    list_filter = 'published_date',
    date_hierarchy = 'published_date'
    ordering = '-published_date',


admin.site.register(Post, PostAdmin)

from django.contrib import admin
from .models import Post


class PostAdmin(admin.ModelAdmin):
    list_display = 'title', 'author', 'published_date'
    list_filter = 'published_date',
    date_hierarchy = 'published_date'
    ordering = '-published_date',


admin.site.register(Post, PostAdmin)

from django.contrib import admin
from .models import Post

#http://www.djangobook.com/en/2.0/chapter06.html

class PostAdmin(admin.ModelAdmin):
	list_display = ('title', 'author', 'published_date' )
	list_filter = ('published_date',)
	date_hierarchy = 'published_date'
	ordering = ('-published_date',)

admin.site.register(Post, PostAdmin)

