hi,

I have encountered a very peculiar problem. I have a local copy of my project 
running on FC11, apache2, mod_python and latest django trunk. My production 
server is lenny, apache2, mod_python and latest django trunk. I test my code 
locally and commit it to the production site. So the code in both sites is 
identical.

I have a model which has a M2M field called 'speaker'. On POST from the form I 
run:
fm = form.cleaned_data
fm['speaker'].append(y)

this works perfectly on my local machine - the line is there in both the 'add' 
view and the 'edit' view.

on the remote machine, the line works in the 'add' view, but in the 'edit' 
view I get the error:
queryset has no attribute 'append'.

now fm is a queryset, but is fm['speaker'] a queryset? As far as I can see it 
is a list. And why does append work in 3 of the 4 cases and not in the 4th?
-- 
regards
kg
http://lawgon.livejournal.com

--~--~---------~--~----~------------~-------~--~----~
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