from django.contrib import admin

from .models import Question, Choice

admin.site.site_header = 'Polls Project'


class ChoiceInline(admin.StackedInline):
    model = Choice
    extra = 1


@admin.register(Question)
class QuestionAdmin(admin.ModelAdmin):
    list_display = ('text', 'open', )
    list_filter = ('open', )
    inlines = [ChoiceInline]

54756166b4585bd164f61cf23e9758e98949b4ce
<mask token>


@admin.register(Question)
class QuestionAdmin(admin.ModelAdmin):
    list_display = 'text', 'open'
    list_filter = 'open',
    inlines = [ChoiceInline]

<mask token>


class ChoiceInline(admin.StackedInline):
    model = Choice
    extra = 1


@admin.register(Question)
class QuestionAdmin(admin.ModelAdmin):
    list_display = 'text', 'open'
    list_filter = 'open',
    inlines = [ChoiceInline]

<mask token>
admin.site.site_header = 'Polls Project'


class ChoiceInline(admin.StackedInline):
    model = Choice
    extra = 1


@admin.register(Question)
class QuestionAdmin(admin.ModelAdmin):
    list_display = 'text', 'open'
    list_filter = 'open',
    inlines = [ChoiceInline]

from django.contrib import admin
from .models import Question, Choice
admin.site.site_header = 'Polls Project'


class ChoiceInline(admin.StackedInline):
    model = Choice
    extra = 1


@admin.register(Question)
class QuestionAdmin(admin.ModelAdmin):
    list_display = 'text', 'open'
    list_filter = 'open',
    inlines = [ChoiceInline]

from django.contrib import admin

from .models import Question, Choice

admin.site.site_header = 'Polls Project'


class ChoiceInline(admin.StackedInline):
    model = Choice
    extra = 1


@admin.register(Question)
class QuestionAdmin(admin.ModelAdmin):
    list_display = ('text', 'open', )
    list_filter = ('open', )
    inlines = [ChoiceInline]
