You may get the above error message in

—-

from biz.models import Entry, City, Category

class CityAdmin(admin.ModelAdmin):
list_display = (‘name’)
admin.site.register(City, CityAdmin)

———

to fix,

list_display = (‘name’,)

In admin interface,

the element of list will be displayed.

—————-

e.g.,

from django.contrib import admin
from mailer.models import Message

class MessageAdmin(admin.ModelAdmin):
list_display = (‘id’, ‘to_address’, ‘subject’, ‘when_added’, ‘priority’)

© 2011 Web Oom Suffusion theme by Sayontan Sinha
Switch to our mobile site
Top Footer