You should change: admin.site.register(PageAdmin)
to: admin.site.register(FlatPage, PageAdmin) also I don't see where you are using a generic relation - so the class for your inline should be admin.StackedInline not generic.GenericStackedInline -Preston On Nov 11, 8:37 pm, neridaj <[email protected]> wrote: > it looks like the admin.AdminModel object is causing the error in this > inline definition > > class PageAdmin(admin.ModelAdmin): > inlines = [ > KeywordInline, > ] > > admin.site.register(PageAdmin) > > 'MediaDefiningClass' object is not iterable > > when I comment that out the blog.Categories class is available in the > admin. > > On Nov 11, 8:09 pm, Kenneth Gonsalves <[email protected]> wrote: > > > > > On Thursday 12 Nov 2009 9:36:11 am Zeynel wrote: > > > > Sorry, I am a beginner but I noticed that in my models the indent of > > > unicode is indented like this: > > > > class SearchKeyword(models.Model): > > > keyword = models.CharField(max_length=50) > > > page = models.ForeignKey(FlatPage) > > > def __unicode__(self): > > > return self.keyword > > > > I have no idea if this will cause an error, though. > > > does this post have anything to do with the subject of the previous post? if > > not, it is a good idea to start a new thread with a proper subject line. I > > do > > not see any error in indentation, but the best way to check is to press > > 'compile' on your ide and see if any errors show - indentation errors will > > show. > > -- > > regards > > Kenneth Gonsalves > > Senior Project Officer > > NRC-FOSShttp://nrcfosshelpline.in/web/ -- 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=.

