1. Dmitry Selitsky
  2. south


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
  • Branches default

Comments (0)

Files changed (1)

File db/generic.py

View file
         qn = connection.ops.quote_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