from django.contrib import admin
from polls.models import Poll
from polls.models import Choice

admin.site.register(Poll)
admin.site.register(Choice)



from django.contrib import admin
from polls.models import Poll
from polls.models import Choice

class PollAdmin(admin.ModelAdmin):
    fieldsets = [
        (None,               {'fields': ['question']}),
        ('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}),
    ]

admin.site.register(Poll, PollAdmin)
admin.site.register(Choice)



Customize the admin form