Sunday, January 30, 2011

simplest for example, Error object has no attribute 'cleaned_data'

Is it possible by making small change to resolve the error below:
(I did not yet finished reading all manual, maybe the error disappears
if i make custom code for every line in the model, but my model has
over 30 fields thus i would like to have automated save and post of
all these fields)

Django Version: 1.2.4
Exception Type: AttributeError
Exception Value: 'WordFormM' object has no attribute 'cleaned_data'
Exception Location: c:\Python27\lib\site-packages\django\forms
\ in save_m2m, line 78
from forms import FindWordM
from models import Word
from django.shortcuts import render_to_response,

def first(request):
return render_to_response("c:/Python27/Scripts/Finnish2/Fin/
templates/trials/correct.html", {
"formWord": formWord})
from django.forms import ModelForm
from models import Word

class FindWordM(ModelForm):
class Meta:
from django.db import models

class Word(models.Model):
WordSentencesMM=models.ManyToManyField('self', null=True,
related_name='DeclNWord', null=True, blank=True)
from django.conf.urls.defaults import *

urlpatterns = patterns('',

You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment