> im a bloody django and python beginner and right now playing arround > with the code provided > onhttp://code.djangoproject.com/wiki/CookBookNewformsAdminAndUser > > on storing the entry in the admin following error occur: > > AttributeError at /admin/news/post/add/ > > 'CommentFormFormSet' object has no attribute '__name__'
Replace the following line: if formset.__name__ == 'CommentInline': with the line: if formset.model == Comment: I have updated this cook book entry with the above fix. -Rajesh D --~--~---------~--~----~------------~-------~--~----~ 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=en -~----------~----~----~----~------~----~------~--~---

