Case-insensitive collations and ModelMultipleChoiceField?

2012-03-10 Thread David Lindquist
I may have found a bug in Django but wanted to run it by the core developers before I filed a ticket. It concerns validation of a ModelMultipleChoiceField when using a case-insensitive database collation (in our case, a MySQL database with collation set to 'utf8_general_ci'). First some background

Re: CSV serializer?

2010-10-26 Thread David Lindquist
For what it's worth, here are some of the decisions that I made in the serializer I linked to above. - m2m values are serialized as comma separated values surrounded by brackets, like Python lists: "[1, 2, 3]" - The Python contstants True, False, and None are serialized as the strings "True", "Fal

Re: CSV serializer?

2010-10-26 Thread David Lindquist
On Oct 26, 8:05 am, Russell Keith-Magee wrote: > On Tue, Oct 26, 2010 at 12:01 PM, David Lindquist > > wrote: > > I was wondering what the prospect was of getting a CSV serializer > > added to Django. It seems like it would be useful for many use cases, > > esp

CSV serializer?

2010-10-26 Thread David Lindquist
I was wondering what the prospect was of getting a CSV serializer added to Django. It seems like it would be useful for many use cases, especially for bulk editing of objects by non-technical users. We have this requirement where I work, so I wrote a CSV serializer: http://djangosnippets.org/snippe