Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#24602 closed Uncategorized (fixed)

Custom Field documentation mentions __metaclass__ incorrectly.

Reported by: Matthew Schinckel Owned by: nobody
Component: Documentation Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The page https://docs.djangoproject.com/en/dev/howto/custom-model-fields/#useful-methods specifically says: "Once you’ve created your Field subclass and set up the __metaclass__,", but metaclasses are not mentioned prior to this.

I think this is something that should have been changed with the phasing out of the SubFieldBase metaclass.

Change History (2)

comment:1 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: newclosed

In 6d7784a7:

Fixed #24602 -- Removed obsolete reference to metaclass in custom model fields docs.

Thanks schinckel for the report.

comment:2 by Tim Graham <timograham@…>, 9 years ago

In d11e87bf:

[1.8.x] Fixed #24602 -- Removed obsolete reference to metaclass in custom model fields docs.

Thanks schinckel for the report.

Backport of 6d7784a7b994eb8287ec851b22acb5170e77a90a from master

Note: See TracTickets for help on using tickets.
Back to Top