Aug 032009

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’,)

Posted by weboom at 5:36 am Tagged with: , ,
Jun 272009

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

Posted by weboom at 6:49 am Tagged with: ,
Switch to our mobile site
Top Footer