You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
545 B
15 lines
545 B
from django.contrib import admin
|
|
from .models import Post, Index_Post, Sexy_Posts
|
|
|
|
class PostAdmin(admin.ModelAdmin):
|
|
list_display = ('title', 'short_description', 'pub_date', 'show_on_page')
|
|
|
|
class IndexPostAdmin(admin.ModelAdmin):
|
|
list_display = ('title', 'content', 'pub_date', 'show_on_page')
|
|
|
|
class SexyPost(admin.ModelAdmin):
|
|
list_display = ('title', 'short_description', 'pub_date', 'show_on_page')
|
|
|
|
admin.site.register(Post, PostAdmin)
|
|
admin.site.register(Index_Post, IndexPostAdmin)
|
|
admin.site.register(Sexy_Posts, SexyPost)
|