diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2007-09-14 18:36:04 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2007-09-14 18:36:04 +0000 |
| commit | eea935a7f410b6ebda562d3d24d72f2b3fdda4b9 (patch) | |
| tree | 16c978b63db8d70af241e38f96f3b9788a6ef268 /tests | |
| parent | c998feb3bb97cfd8f7ca00aeb6a0fa61f4815f07 (diff) | |
Fixed #5448: you can now use unicode characters in primary keys. Thanks, pigletto.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6200 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/modeltests/custom_pk/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/modeltests/custom_pk/models.py b/tests/modeltests/custom_pk/models.py index 53bbadbfd4..375859c897 100644 --- a/tests/modeltests/custom_pk/models.py +++ b/tests/modeltests/custom_pk/models.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ 14. Using a custom primary key @@ -92,4 +93,8 @@ DoesNotExist: Employee matching query does not exist. >>> Business.objects.filter(employees__first_name__startswith='Fran') [<Business: Sears>] +# Primary key may be unicode string +>>> emp = Employee(employee_code='jaźń') +>>> emp.save() + """} |
