admin.py 184 B

123456
  1. from django.contrib import admin
  2. from .models import Post
  3. # Register your models here.
  4. @admin.register(Post)
  5. class PostAdmin(admin.ModelAdmin):
  6. list_display = ('id','title','desc')