from django.contrib import admin
from .models import Question,Choice
# Register your models here.

admin.site.site_header = 'Pollon Admin'
admin.site.site_title = 'Pollon Admin'
admin.site.index_title = 'Welcome To Pollon Admin'



class ChoiceInline(admin.TabularInline):
    model = Choice
    extra =2

class QuestionAdmin(admin.ModelAdmin):
    fieldsets=[(None,{'fields':['question_text']}),
    ('Date Information', {'fields':['pub_date'],'classes':['collapse']}),
    ('Open For All', {'fields':['open_for_all']}),
    ('Voted By', {'fields':['voted_by']}),
    ('Login Required', {'fields':['login_required']})
    ]
    inlines=[ChoiceInline]
    
admin.site.register(Question,QuestionAdmin)
admin.site.register(Choice)
bf1b9f9203aea6e6d93a6efb0ecbfd49b978cf08
<mask token>


class ChoiceInline(admin.TabularInline):
    model = Choice
    extra = 2


class QuestionAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['question_text']}), ('Date Information',
        {'fields': ['pub_date'], 'classes': ['collapse']}), ('Open For All',
        {'fields': ['open_for_all']}), ('Voted By', {'fields': ['voted_by']
        }), ('Login Required', {'fields': ['login_required']})]
    inlines = [ChoiceInline]


<mask token>

<mask token>


class ChoiceInline(admin.TabularInline):
    model = Choice
    extra = 2


class QuestionAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['question_text']}), ('Date Information',
        {'fields': ['pub_date'], 'classes': ['collapse']}), ('Open For All',
        {'fields': ['open_for_all']}), ('Voted By', {'fields': ['voted_by']
        }), ('Login Required', {'fields': ['login_required']})]
    inlines = [ChoiceInline]


admin.site.register(Question, QuestionAdmin)
admin.site.register(Choice)

<mask token>
admin.site.site_header = 'Pollon Admin'
admin.site.site_title = 'Pollon Admin'
admin.site.index_title = 'Welcome To Pollon Admin'


class ChoiceInline(admin.TabularInline):
    model = Choice
    extra = 2


class QuestionAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['question_text']}), ('Date Information',
        {'fields': ['pub_date'], 'classes': ['collapse']}), ('Open For All',
        {'fields': ['open_for_all']}), ('Voted By', {'fields': ['voted_by']
        }), ('Login Required', {'fields': ['login_required']})]
    inlines = [ChoiceInline]


admin.site.register(Question, QuestionAdmin)
admin.site.register(Choice)

from django.contrib import admin
from .models import Question, Choice
admin.site.site_header = 'Pollon Admin'
admin.site.site_title = 'Pollon Admin'
admin.site.index_title = 'Welcome To Pollon Admin'


class ChoiceInline(admin.TabularInline):
    model = Choice
    extra = 2


class QuestionAdmin(admin.ModelAdmin):
    fieldsets = [(None, {'fields': ['question_text']}), ('Date Information',
        {'fields': ['pub_date'], 'classes': ['collapse']}), ('Open For All',
        {'fields': ['open_for_all']}), ('Voted By', {'fields': ['voted_by']
        }), ('Login Required', {'fields': ['login_required']})]
    inlines = [ChoiceInline]


admin.site.register(Question, QuestionAdmin)
admin.site.register(Choice)

from django.contrib import admin
from .models import Question,Choice
# Register your models here.

admin.site.site_header = 'Pollon Admin'
admin.site.site_title = 'Pollon Admin'
admin.site.index_title = 'Welcome To Pollon Admin'



class ChoiceInline(admin.TabularInline):
    model = Choice
    extra =2

class QuestionAdmin(admin.ModelAdmin):
    fieldsets=[(None,{'fields':['question_text']}),
    ('Date Information', {'fields':['pub_date'],'classes':['collapse']}),
    ('Open For All', {'fields':['open_for_all']}),
    ('Voted By', {'fields':['voted_by']}),
    ('Login Required', {'fields':['login_required']})
    ]
    inlines=[ChoiceInline]
    
admin.site.register(Question,QuestionAdmin)
admin.site.register(Choice)