Has anybody seen this error:

Exception Type:         AttributeError
Exception Value:

'_CheckLogin' object has no attribute '_meta'

See also http://dpaste.com/81918/

Possibly related technique: I'm trying to use multi-table inheritance
and a form dictionary to get the form class based on a subclass
instance field value.

Possibly related code in views.py (this is work-in-progress, but not
cleaned up):

SECTION_FORM_DICT = {
    "Scope": ScopeSectionForm,
}

@login_required
def edit_section(request, section_slug):
    section = get_object_or_404(ReportSection, slug=section_slug)
    section_form_class = SECTION_FORM_DICT[section.title]
    if request.method == "POST":
        section_form = section_form_class(request.POST,
instance=report)
        if section_form.is_valid():
            section = section_form.save(commit=False)
            section.save()
            return HttpResponseRedirect(reverse("report_section",
kwargs={"section_slug": section.slug}))
    else:
        section_form = section_form_class(instance=section)

    return render_to_response("intelligator/edit_section.html", {
        "section_form": section_form,
        "section": section
    }, context_instance=RequestContext(request))
--~--~---------~--~----~------------~-------~--~----~
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