Hi Karen,
Here is an example that I use to replicate the error:
view >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[snip]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
form >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
class RatingsListFilterForm(forms.Form):
organisation_name = forms.CharField(required=False,
widget=forms.TextInput(attrs={'class':'textbox'}))
corporation = forms.ModelChoiceField(required=False,
queryset=Corporation.objects.all(),
widget=forms.Select(attrs={'class':'selector'}))
....
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Traceback>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[snip]
I'm using Django 1.1 if that makes any difference
This was a bug in Django, the code you post works on 1.3 and 1.2.5. I believe the issue was corrected with the fix for ticket #13149.
Karen
--
http://tracey.org/kmt/
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment