Wednesday, January 27, 2010

Django model field inheritance

To inherit model field in Django is not enough simply inherit a field class. It is needed to add attribute __metaclass__ = models.SubfieldBase. After that, you can overload any method you want.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.