I have many applications with historic south initial migrations, which i wanted to convert to django 1.5 applicable. So i swapped out all orm['auth.User'] references in migration files with custom ones, but when i try to run those migrations i get following error:
Error in migration: django_notify:0001_initial KeyError: "The model 'customuser' from the app 'profiles' is not available in this migration."
The migration in question is this: http://bpaste.net/show/2CwaYrlNifNTd5gcHUfK/
My custom User class is:
class CustomUser(AbstractUser):
image = models.ImageField(_('Image Field'), upload_to='user_images')
I am also unable to convert my'profiles' app to south using convert_to_south command. I get the following error:
Creating init.py in '/Users/tejinder/Projects/basidia/apps/profiles/migrations'...
Added model profiles.CustomUser
Added M2M table for groups on profiles.CustomUser
Added M2M table for user_permissions on profiles.CustomUser
Created 0001_initial.py. You can now apply this migration with: ./manage.py migrate profiles
CommandError: One or more models did not validate: auth.user: Model has been swapped out for 'profiles.CustomUser' which has not been installed or is abstract.
What could have been gone wrong? Thanks in advance.