I think it does the same thing, but I was talking about how you cant set 'ordering' under the Meta class in a model. http://docs.djangoproject.com/en/1.2/ref/models/options/#django.db.models.Options.ordering
<http://docs.djangoproject.com/en/1.2/ref/models/options/#django.db.models.Options.ordering>If I set it to a field of Japanese characters, the ordering comes out wrong. At least not in the desired order. How can I set the data collation for just a few fields? And how can I know which of the Japanese to set it to? Thanks, James Hancock On Wed, Jan 5, 2011 at 6:01 PM, Daniel Roseman <dan...@roseman.org.uk>wrote: > On Wednesday, January 5, 2011 8:31:02 AM UTC, James Hancock wrote: >> >> I have a site I am working on where the main language is Japanese. >> When I tried to order the fields in my form on >> http://goeigo.org/loc/tokyo/nakano/ by their Japanese name, it doesn't >> put them in the right order. It sorts it, but it is in a strange unhelpful >> kanji order. >> >> How does ordering() order Japanese Unicode text? and, wow can I get it to >> follow the standard Japanese Order? >> >> Can ordering be language specific? >> >> Cheers, >> James Hancock >> > > What do you mean by ordering()? If you mean the ORM order_by() method, this > just asks the database to do the sorting. So you need to make sure that the > database collation is correct for Japanese sorting. For MySQL, for example, > see here: > http://dev.mysql.com/doc/refman/5.5/en/charset-charsets.html > -- > DR. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.