Pardon me.
I incorrectly followed the suggestion, should have been the following
in admin.py:
admin.site.register(Book)
admin.site.register(Author)
admin.site.register(Publisher)
What is the difference between this and, say,
class BookAdmin(admin.ModelAdmin):
pass
admin.site.register(Book, B
Thanks for the replies. I restarted the dev server (and even my x
session).
I first tried:
class BookAdmin(admin.ModelAdmin):
pass
#admin.site.register(Book, BookAdmin)
class AuthorAdmin(admin.ModelAuthor):
pass
#admin.site.register(Author, AuthorAdmin)
class PublisherAdmin(admin.ModelP
Thanks for the replies. I restarted the dev server (and even my x
session).
I first tried:
class BookAdmin(admin.ModelAdmin):
pass
#admin.site.register(Book, BookAdmin)
class AuthorAdmin(admin.ModelAuthor):
pass
#admin.site.register(Author, AuthorAdmin)
class PublisherAdmin(admin.ModelP
hi,
class BookAdmin(admin.ModelAdmin):
pass
# admin.site.register(Book, BookAdmin)
Just put '#' in front of admin.site.register(Book, BookAdmin) .Now run the
server ,if it s ok then remove the #
On Tue, Dec 2, 2008 at 12:47 PM, Roland van Laar <[EMAIL PROTECTED]> wrote:
>
> djan wrote:
> >
djan wrote:
> Hello.
>
> I'm following along with djangobook.com and trying to make necessary
> changes to port django to version 1.0. In Django's Site
> Administration, chapter 6, I run into the error:
>
>
> Exception Type: AlreadyRegistered
> Exception Value: The model Book is already
Hello.
I'm following along with djangobook.com and trying to make necessary
changes to port django to version 1.0. In Django's Site
Administration, chapter 6, I run into the error:
Exception Type: AlreadyRegistered
Exception Value:The model Book is already registered
Exception L
6 matches
Mail list logo