First time here? Check out the FAQ!

Revision history  [back]

Using python south with add_to_class()

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


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

$ ./ 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?