﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5448	Primary key can't be string with unicode characters	Maciej Wiśniowski	Maciej Wiśniowski	"Model defined like:

class Actor(models.Model):
    name = models.CharField(max_length=20, primary_key=True)

when trying to save it:
>>> travolta = Actor(name=""Zażółć"")
>>> travolta.save()
There is UnicodeDecodeError at:
django.db.base.Model -> save function:

File "".../lib/python2.4/site-packages/django/db/models/base.py"", line 218, in save
        pk_set = pk_val is not None and pk_val != u''
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 2: ordinal not in range(128)

fix should use smart_unicode like:
pk_set = pk_val is not None and smart_unicode(pk_val) != u''"		closed	Core (Other)	dev		fixed	unicode primary key pk		Ready for checkin	1	0	0	0	0	0
