Commits

Anonymous committed e0d747c

added a hook to allow a field to resolve any necessary dependencies before it's attributes are accessed during sql construction

Comments (0)

Files changed (1)

         """
         qn = connection.ops.quote_name
         field.set_attributes_from_name(field_name)
+        
+        # hook for the field to do any resolution prior to it's attributes being queried
+        if hasattr(field, 'south_init'):
+            field.south_init()
+        
         sql = field.db_type()
         if not sql:
             return None