<filename>StoryMap/apps/main_platform/admin.py<gh_stars>1-10
from django.contrib import admin
from .models import Story


# Register your models here.

class StoryAdmin(admin.ModelAdmin):

    fields = ['title', 'content', 'user_belong', 'longitude', 'latitude']

    list_display = ['title', 'content', 'created_time', 'modified_time', 'user_belong']


admin.site.register(Story, StoryAdmin)
<filename>StoryMap/apps/main_platform/admin.py<gh_stars>1-10
from django.contrib import admin
from .models import Story


# Register your models here.

class StoryAdmin(admin.ModelAdmin):

    fields = ['title', 'content', 'user_belong', 'longitude', 'latitude']

    list_display = ['title', 'content', 'created_time', 'modified_time', 'user_belong']


admin.site.register(Story, StoryAdmin)
# Register your models here.