from django.contrib import admin

from apps.polls.models import Poll


admin.site.register(Poll)
from django.contrib import admin

from apps.polls.models import Poll

class PollAdmin(admin.ModelAdmin):
    fields = ['pub_date', 'question']


admin.site.register(Poll, PollAdmin)
customize the admin form, add PollAdmin class