Opened 4 years ago

Closed 4 years ago

Last modified 4 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 Changed 4 years ago by Tim Graham <timograham@…>

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 Changed 4 years ago by Tim Graham <timograham@…>

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