﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19539	Writing custom model fields: The __metaclass__ attribute is no longer supported in Python 3	astorije@…	nobody	"As Django 1.5 introduces the support of Python 3, I think the documentation of ""Writing custom model fields"" should warn developers that:

{{{
#!python
class MyCustomField(models.Field):
    __metaclass__ = models.SubfieldBase
}}}

is no longer supported and that they should use:

{{{
#!python
class MyCustomField(models.Field, metaclass=models.SubfieldBase):
    ...
}}}

instead.

Writing in the first (old) fashion results in no errors or warnings whatsoever. The to_python() method is just not called as it should be..."	Cleanup/optimization	closed	Documentation	1.5-alpha-1	Normal	fixed			Ready for checkin	1	0	0	0	0	0
