Friday, November 28, 2014

Re: Using data migration to create initial users errors

Did you find a way to use method create_user in a data migration?
I can't see a way to import the manager for using it.

Le jeudi 16 octobre 2014 23:19:43 UTC+2, Collin Anderson a écrit :
Hi Ben,

Yes, the custom manager objects are not available within migrations. I bet you might be able to import the UserManager and stick it on the User model yourself.

Collin

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f7024bc8-e81f-4f66-8604-58c870963546%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment