app/django/db/models/fields/subclassing.py
changeset 323 ff1a9aa48cfd
parent 54 03e267d67478
--- 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
-