from django.contrib import admin

# Register your models here.

from polls.models import Poll,Choice
admin.site.register(Choice)
#class ChoiceInline(admin.StackedInline):
 #  model=Choice
  # extra=3


class PollAdmin(admin.ModelAdmin):
   list_display=('questions', 'pub_date', 'was_published_recently')
   list_filter=['pub_date']
   search_fields=['questions']
   #fieldsets=[(None              , {'fields': ['questions']}),
    #          ('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}), 
   #]
   #inlines= [ChoiceInline]
admin.site.register(Poll, PollAdmin)
