Answers for "django blog new post"

0

django blog new post

from django.contrib import admin
from .models import Post

class PostAdmin(admin.ModelAdmin):
    list_display = ('title', 'slug', 'status','created_on')
    list_filter = ("status",)
    search_fields = ['title', 'content']
    prepopulated_fields = {'slug': ('title',)}
  
admin.site.register(Post, PostAdmin)
Posted by: Guest on February-01-2021

Code answers related to "django blog new post"

Python Answers by Framework

Browse Popular Code Answers by Language