Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Customizing the Django Admin Customizing the Detail View Test: Horizontal Select and Tabularinline

In the TextAdmin class, replace the drop-down menu for the course attribute with radio buttons

why is my code not passing

courses/admin.py
from django.contrib import admin

from . import models

class TextAdmin(admin.ModelAdmin):
    pass

    radio_fields = {'text': admin.VERTICAL}

admin.site.register(models.Text, TextAdmin)

Lacey Williams Henschel not sure if its bug or it's just me

from django.contrib import admin

from . import models

class TextAdmin(admin.ModelAdmin): pass radio_fields = {'text': admin.VERITCAL} admin.site.register(models.Text, TextAdmin)

Stalin Ruiz
Stalin Ruiz
8,807 Points

from django.contrib import admin

from . import models

class TextAdmin(admin.ModelAdmin): radio_fields = {"course": admin.VERTICAL} pass

admin.site.register(models.Text, TextAdmin)

1 Answer

Stalin Ruiz thanks