Changes between Version 4 and Version 5 of ExtendingIntrospection


Ignore:
Timestamp:
01/31/10 17:30:58 (5 years ago)
Author:
andrew
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ExtendingIntrospection

    v4 v5  
    5858 
    5959See the [/browser/south/introspection_plugins/geodjango.py GeoDjango rules module] in South core, or even the core rules in the [/browser/south/modelsinspector.py inspector module]. 
     60 
     61== Caveats == 
     62 
     63If you have a custom field which adds other fields to the model dynamically (i.e. it overrides contribute_to_class and adds more fields onto the model), you'll need to write your introspection rules appropriately, to make South ignore the extra fields at migration-freezing time, or to add a flag to your field which tells it not to make the new fields again. An example can be found [http://bitbucket.org/carljm/django-markitup/src/tip/markitup/fields.py#cl-68 here].