Friday, February 1, 2013

Can't perform data migrations using django 1.5 Custom user class

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'] relation 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')


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment