Opened 9 years ago
Closed 9 years ago
#24992 closed Cleanup/optimization (wontfix)
merge subfieldbase-metaclass example code in docs
Reported by: | jedie | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.7 |
Severity: | Normal | Keywords: | subfieldbase, metaclass |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
https://docs.djangoproject.com/en/1.7/howto/custom-model-fields/#the-subfieldbase-metaclass contains three code examples:
- for Python 2 only
- for Python 3 only
- for Python 2+3 using six.with_metaclass()
What's about to remove the first two examples and leave only the six.with_metaclass() example?!?
Note:
See TracTickets
for help on using tickets.
SubfieldBase
is deprecated in Django 1.8 so those examples no longer appear in newer versions of the docs.