django - how to write manual south migration for a newly added custom field -
**this newly added field quote model
quote_template = models.charfield(_('template'), choices=template, max_length=20) at sudo ../hatsenv/bin/python manage.py schemamigration quote --auto
i getting error
! cannot freeze field 'quote.quote.tags'
! (this field has class tags.managers.partnertaggablemanager)
! south cannot introspect fields; because custom
! fields. if worked in 0.6 or below, because have removed the
! models parser (it broke things).
! fix this, read http://south.aeracode.org/wiki/myfieldsdontwork
how write manual migration one**
ignore field @ time of migration
from south.modelsinspector import add_ignored_fields
add_ignored_fields(["^taggit.managers"])
Comments
Post a Comment