mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
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
This commit is contained in:
@@ -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()
|
||||
|
||||
"""}
|
||||
|
||||
Reference in New Issue
Block a user