> 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.

-- 
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.

Reply via email to