mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
[py3] Ported django.utils.encoding.
* Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
This commit is contained in:
@@ -630,7 +630,7 @@ site.register(UndeletableObject, UndeletableObjectAdmin)
|
||||
# related OneToOne object registered in admin
|
||||
# related OneToOne object not registered in admin
|
||||
# when deleting Book so as exercise all four troublesome (w.r.t escaping
|
||||
# and calling force_unicode to avoid problems on Python 2.3) paths through
|
||||
# and calling force_text to avoid problems on Python 2.3) paths through
|
||||
# contrib.admin.util's get_deleted_objects function.
|
||||
site.register(Book, inlines=[ChapterInline])
|
||||
site.register(Promo)
|
||||
|
||||
Reference in New Issue
Block a user