Changeset 6200
- Timestamp:
- 09/14/07 13:36:04 (1 year ago)
- Files:
-
- django/trunk/AUTHORS (modified) (1 diff)
- django/trunk/django/db/models/base.py (modified) (2 diffs)
- django/trunk/tests/modeltests/custom_pk/models.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/AUTHORS
r6193 r6200 233 233 phil.h.smith@gmail.com 234 234 Gustavo Picon 235 pigletto 235 236 Luke Plant <http://lukeplant.me.uk/> 236 237 plisk django/trunk/django/db/models/base.py
r6187 r6200 13 13 from django.utils.datastructures import SortedDict 14 14 from django.utils.functional import curry 15 from django.utils.encoding import smart_str, force_unicode 15 from django.utils.encoding import smart_str, force_unicode, smart_unicode 16 16 from django.conf import settings 17 17 from itertools import izip … … 214 214 # Note: the comparison with '' is required for compatibility with 215 215 # oldforms-style model creation. 216 pk_set = pk_val is not None and pk_val!= u''216 pk_set = pk_val is not None and smart_unicode(pk_val) != u'' 217 217 record_exists = True 218 218 if pk_set: django/trunk/tests/modeltests/custom_pk/models.py
r5876 r6200 1 # -*- coding: utf-8 -*- 1 2 """ 2 3 14. Using a custom primary key … … 93 94 [<Business: Sears>] 94 95 96 # Primary key may be unicode string 97 >>> emp = Employee(employee_code='jaźń') 98 >>> emp.save() 99 95 100 """}
