Hi there!

I've got a Django app working on the Oracle backend. I have a table/
model with a char field and I store there strings (names) that contain
polish letters. On the admin panel when I sort those names, ones that
are starting with polish letters are after those that are starting
with letter 'z'. Weird thing is that $ORACLE_HOME/sqlplus is sorting
correctly the query and moreover even cx_Oracle sample
'ReturnUnicode.py' is printing the results correctly.

my model looks like this (sorry for polish naming) :
#encoding: utf-8

class Projekt(models.Model):
    id = models.AutoField(db_column='id', primary_key=True)
    nazwa = models.CharField(db_column='nazwa', unique=True,
max_length = 100)
    ...
    class Meta:
        db_table = 'Projekty'
        verbose_name = _(u'Projekt')
        verbose_name_plural = _(u'Projekty')
        ordering = ['nazwa']
    def __unicode__(self):
        return u"%s" % (self.nazwa[:35],)

Can anyone tell me what could be the issue ?

Regards

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