Hi,

Im reading the book 'Practical Django Projects', and trying to make it
work with latest changes in Django SVN
I'm trying to use edit inline (this is very new to me) with FlatPages
and when I do the following

from django.contrib import admin
from cms.search.models import SearchKeyword
from django.contrib.flatpages.models import FlatPage

class SearchKeywordInline(admin.StackedInline):
    model = SearchKeyword

class FlatPageAdmin(admin.ModelAdmin):
    inline = [
        SearchKeywordInline,
        ]


admin.site.register(FlatPage, FlatPageAdmin)

I get:

The model FlatPage is already registered.

I think that FlatPages have another way to inline edit things?

any help here appreciated...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to