xtrinch/fcm-django

ERRORS: fcm_django.FCMDevice.user: (fields.E301) Field defines a relation with the model 'auth.User', which has been swapped out. HINT: Update the relation to point at 'settings.AUTH_USER_MODEL'.

sreebash opened this issue · 2 comments

I have perfectly set up fcm-django project with my project where I have used custom user modelbut got the following error threw What should I do please help me!

ERRORS:
fcm_django.FCMDevice.user: (fields.E301) Field defines a relation with the model 'auth.User', which has been swapped out.
HINT: Update the relation to point at 'settings.AUTH_USER_MODEL'.

I presume you ran migrations for fcm-django before you swapped out the user model?
If this is a new project I'd suggest you do it the other way around, then it'll get registered correctly
See https://github.com/xtrinch/fcm-django/blob/master/fcm_django/migrations/0009_alter_fcmdevice_user.py

Closing due to inactivity. Feel free to reopen if you have further trouble