mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #4947 -- Avoid displaying uploaded file contents in the debug web page. Based on a patch from eibaan@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5874 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -64,4 +64,13 @@ True
|
||||
['Holovaty']
|
||||
>>> d['person']['2']['firstname']
|
||||
['Adrian']
|
||||
|
||||
### FileDict ################################################################
|
||||
|
||||
>>> d = FileDict({'content': 'once upon a time...'})
|
||||
>>> repr(d)
|
||||
"{'content': '<omitted>'}"
|
||||
>>> d = FileDict({'other-key': 'once upon a time...'})
|
||||
>>> repr(d)
|
||||
"{'other-key': 'once upon a time...'}"
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user