Allow descriptor introspection.

(See Django #8248 for details,
http://code.djangoproject.com/ticket/8248)