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):
	fieldsets = [
        (None,               {'fields': ['question']}),
        ('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}),
    ]
	
admin.site.register(Poll, PollAdmin)
Customize the admin form