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 trialChristopher 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)