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.

Christopher Gomez
Courses Plus Student 13,800 PointsIn the TextAdmin class, replace the drop-down menu for the course attribute with radio buttons
why is my code not passing
from django.contrib import admin
from . import models
class TextAdmin(admin.ModelAdmin):
pass
radio_fields = {'text': admin.VERTICAL}
admin.site.register(models.Text, TextAdmin)

Stalin Ruiz
8,807 Pointsfrom 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

Christopher Gomez
Courses Plus Student 13,800 PointsStalin Ruiz thanks
Christopher Gomez
Courses Plus Student 13,800 PointsChristopher Gomez
Courses Plus Student 13,800 PointsLacey 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)