Commits

amcc...@69d324d9-c39d-4fdc-8679-7745eae9e2c8  committed e0d747c

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

  • Participants
  • Parent commits 4ee8287

Comments (0)

Files changed (1)

File db/generic.py

         """
         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