Using python south with add_to_class()

asked 2012-04-29 08:19:27 -0500

powlo gravatar image

So I've added a field to the models.__init__ file using the dynamic mechanism of add_to_class()

Eg

#askbot-devel/askbot/models/__init__.py
User.add_to_class('show_interesting_tags', models.BooleanField(default = False))

I want this modification to be picked up when I run South, which I would normally do by

$ ./manage.py schemamigration askbot --auto
Nothing seems to have changed.

As you can see it doesn't pick up the changes.

Any ideas? For instance how was the field 'show_country' added to the migration?

edit retag flag offensive close merge delete

Comments

I'm having the same exact issue, any clue?

Andreu gravatar imageAndreu ( 2014-06-12 02:49:14 -0500 )edit