--- a/app/django/db/models/fields/subclassing.py Tue Oct 14 12:36:55 2008 +0000
+++ b/app/django/db/models/fields/subclassing.py Tue Oct 14 16:00:59 2008 +0000
@@ -5,9 +5,7 @@
to_python() and the other necessary methods and everything will work seamlessly.
"""
-from django.utils.maxlength import LegacyMaxlength
-
-class SubfieldBase(LegacyMaxlength):
+class SubfieldBase(type):
"""
A metaclass for custom Field subclasses. This ensures the model's attribute
has the descriptor protocol attached to it.
@@ -50,4 +48,3 @@
setattr(cls, self.name, Creator(self))
return contribute_to_class
-