On Monday 20 March 2006 07:46, burivuh wrote: > Situation: > Django 0.91, common CGI through WSGI, many-to-many fields with only one > available choice > (for example, use flatpages and try to add new flat page - you'll see > error) > > Look at the line after #question target > > fields.py: > ManyToManyField: > def flatten_data(self, follow, obj = None): > new_data = {} [snip] > if len(choices_list) == 1: > #question target > print self.name, choices_list[0][0] > #end question target > new_data[self.name] = [choices_list[0][0]] > return new_data > > > This output occures before any legal HTTP header - so we get "Internal > Server Error" > May be it's just forgotten debug code?
Caveat: I'm not a Django developer. I think you're right though, it's probably a bug, and it still exists on trunk/. I'd raise this on the django-dev@ list if you don't get any other replies. -John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---