1

Do you create south migration files manually for User model change?

Suppose you add column to User by User.add_to_class('some_field', field_type)

How do you create a migration for it?

Manually create a migration file and edit it to correctly change auth_user model?

pcompassion's avatar
21
pcompassion
asked 2013-07-24 21:41:43 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

We create them manually. What could help is to first create a migration for some other fully managed table and then edit the migration file and remove the dummy field from the models.

Evgeny's avatar
13.2k
Evgeny
answered 2013-07-24 22:27:57 -0600
edit flag offensive 0 remove flag delete link

Comments

So, from this I understand that 'schemamigration askbot --auto' is not going to normally pick up a change made by adding a field with add_to_class() method?.

Andreu's avatar Andreu (2014-06-12 06:24:13 -0600) edit
add a comment see more comments