> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.