#12568: SubFieldBase descriptor object should be accessible
-------------------------------------+-------------------------------------
     Reporter:  specialunderwear     |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Forms                |                  Version:  1.2-alpha
     Severity:  Normal               |               Resolution:
     Keywords:  SubFieldBase         |             Triage Stage:  Accepted
  subclassing                        |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  1                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by supervacuo):

 Any chance this can make it into an official release? I'm happy to polish
 up however needed, or take this to `django-developers` if it really needs
 discussion.

 Rebased patch against git master attached above, as a start.

 This bug causes an `AttributeError` when trying to use sphinx-autodoc on
 custom fields which have `__metaclass__ = SubFieldBase`, due to the
 underlying "must be accessed from instance" `AttributeError`. The
 equivalent ticket for fixing `inspect()` for Django's built-in fields was
 #8248, fixed in [9634] (~5 years ago).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/12568#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/074.f6cbaaca5f381a859bf7dcad4bee4aa5%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to