On Jun 7, 9:23 pm, zayatzz <alan.kesselm...@gmail.com> wrote: > > What is listed in list_display for the ModelAdmin for the Game model? > > Traceback seems to show you've got a callable attribute on the model listed > > there, and that is the item that is causing trouble. It would be easier to > > diagnose if I could see what that model attribute is defined to do. > > > Karen > > --http://tracey.org/kmt/ > > At that time it was just: > # -*- coding: utf-8 -*- > from django.contrib import admin > from jalka.game.models import Game > > admin.site.register(Game) > > now its: > # -*- coding: utf-8 -*- > from django.contrib import admin > from jalka.game.models import Game > > class GameAdmin(admin.ModelAdmin): > list_display = ['id', 'teamone', 'teamtwo',] > > admin.site.register(Game, GameAdmin) > > and its working.
Guarantee the problem is with your __unicode__ method on the Game model, in that case (it's probably not returning unicode). Even though the admin is now working, you should fix it or you'll almost certainly get unexpected 500 errors later. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.