from django.contrib import admin

# Register your models here.
from .models import Question, Choice, User

class ChoiceInline(admin.TabularInline):
  model = Choice
  fields = ['choice_text', 'choice_odd', 'choice_bet']
  extra = 1

class QuestionAdmin(admin.ModelAdmin):
  inlines = [ChoiceInline]


admin.site.register(Question, QuestionAdmin)
admin.site.register(User)
1e9c5bb7dc28548411b7277dedb81e8e3a6f01b1
<mask token>

<mask token>


class ChoiceInline(admin.TabularInline):
    model = Choice
    fields = ['choice_text', 'choice_odd', 'choice_bet']
    extra = 1


class QuestionAdmin(admin.ModelAdmin):
    inlines = [ChoiceInline]


<mask token>

<mask token>


class ChoiceInline(admin.TabularInline):
    model = Choice
    fields = ['choice_text', 'choice_odd', 'choice_bet']
    extra = 1


class QuestionAdmin(admin.ModelAdmin):
    inlines = [ChoiceInline]


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

from django.contrib import admin
from .models import Question, Choice, User


class ChoiceInline(admin.TabularInline):
    model = Choice
    fields = ['choice_text', 'choice_odd', 'choice_bet']
    extra = 1


class QuestionAdmin(admin.ModelAdmin):
    inlines = [ChoiceInline]


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

from django.contrib import admin

# Register your models here.
from .models import Question, Choice, User

class ChoiceInline(admin.TabularInline):
  model = Choice
  fields = ['choice_text', 'choice_odd', 'choice_bet']
  extra = 1

class QuestionAdmin(admin.ModelAdmin):
  inlines = [ChoiceInline]


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