Hi All,

I have been hitting my head against a wall for way to long on this.

When I view it on the edit page everything looks great!  But when I
try to Save or Update, everything unravels.

I'm following it just the way the very sparse documentation suggests,
and yet I get a "Exception Type:        KeyError".  I've tried it the way
listed below and where "ff=BookFormSet(request.POST, instance=a)" and
where I first put request.POST into a dictionary.  Nothing works.  Any
help would be greatly appreciated.

    author = request.session.get('author', None)
    a = Author.objects.get(id=author.id)
    BookFormSet = inlineformset_factory(Author, Books, extra=0)
    rf = BookFormSet(instance=a)

    if request.method == 'POST':
        if request.POST['submit']=='Update':
            ff = BookFormSet(request.POST)
            if ff.is_valid():
                instances = ff.save()
                return HttpResponseRedirect('/profile/books/view/')

Thanks!
cmiller
--~--~---------~--~----~------------~-------~--~----~
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