from django.contrib import admin
from .models import Job, Choice

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

class JobAdmin(admin.ModelAdmin):
    list_display = ('job_text', 'pub_date')
    list_filter = ['pub_date']
    search_fields = ['job_text']
    inlines = [ChoiceInline]

admin.site.register(Job, JobAdmin)

a9c977f6560d763ea57e134b10fee8168c40111f
<mask token>


class ChoiceInline(admin.TabularInline):
    <mask token>
    <mask token>


class JobAdmin(admin.ModelAdmin):
    list_display = 'job_text', 'pub_date'
    list_filter = ['pub_date']
    search_fields = ['job_text']
    inlines = [ChoiceInline]


<mask token>

<mask token>


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


class JobAdmin(admin.ModelAdmin):
    list_display = 'job_text', 'pub_date'
    list_filter = ['pub_date']
    search_fields = ['job_text']
    inlines = [ChoiceInline]


<mask token>

<mask token>


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


class JobAdmin(admin.ModelAdmin):
    list_display = 'job_text', 'pub_date'
    list_filter = ['pub_date']
    search_fields = ['job_text']
    inlines = [ChoiceInline]


admin.site.register(Job, JobAdmin)

from django.contrib import admin
from .models import Job, Choice


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


class JobAdmin(admin.ModelAdmin):
    list_display = 'job_text', 'pub_date'
    list_filter = ['pub_date']
    search_fields = ['job_text']
    inlines = [ChoiceInline]


admin.site.register(Job, JobAdmin)

from django.contrib import admin
from .models import Job, Choice

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

class JobAdmin(admin.ModelAdmin):
    list_display = ('job_text', 'pub_date')
    list_filter = ['pub_date']
    search_fields = ['job_text']
    inlines = [ChoiceInline]

admin.site.register(Job, JobAdmin)
