Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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