python - user_id not in auth_user table after changing UserModel -


i have had normal custom user model. have many users in database , other models pointing user model. changed user model inherits django's user model.

i did this:

from django.contrib.auth.models import user  class userprofile(user):  #custom fields...  ... 

and tried migrate. giving me error saying (user_id)=(9) not in auth_user table. because other models pointing auth_user , auth_user new , doesnot contain user id 9.

i have many data in db, stuck. do?


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -