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
\models.py in save_m2m, line 78

###################views.py
from forms import FindWordM
from models import Word
from django.shortcuts import render_to_response,

def first(request):
    w=Word.objects.get(pk=90);
    formWord=WordFormM(instance=w);
    formWord.save();
    return render_to_response("c:/Python27/Scripts/Finnish2/Fin/
templates/trials/correct.html", {
        "formWord": formWord})


###################forms.py
from django.forms import ModelForm
from models import Word

class FindWordM(ModelForm):
    class Meta:
        model=Sent

###################models.py
from django.db import models

class Word(models.Model):
    WordSentences=models.TextField(max_length=1000,
blank=True,default='')
    WordSentencesMM=models.ManyToManyField('self', null=True,
blank=True)
    WordGramNotesDeclFK=models.ForeignKey(WordDeclN,
related_name='DeclNWord', null=True, blank=True)
    ...

###################urls.py
from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^first','Finnish2.Fin.views.first')
)

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to