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.
Comment (by anonymous):
Nice!
--
Ticket URL: <https://code.djangoproject.com/ticket/12568#comment:10>
Comment (by akaariai):
Any objections for adding this, seems like a good addition to me?
--
Ticket URL: <https://code.djangoproject.com/ticket/12568#comment:11>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"50633e7353694ff54f14b04469be3792f286182f"]:
{{{
#!CommitTicketReference repository=""
revision="50633e7353694ff54f14b04469be3792f286182f"
Fixed #12568 -- no error when accessing custom field's descriptor
The SubfieldBase's descriptor caused an AttributeError when accessed
from the class. Introspection didn't like that.
Patch by Trac alias supervacuo.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/12568#comment:12>