Closed jwjimmy closed 7 years ago
My current issue is that the built in serializers in django-fcm do not support my custom Device model.
I fixed the serializer issue in my fork of django-fcm
(https://github.com/jwjimmy/django-fcm), and submitted PRs for my changes. Everything is fine and dandy when I run my app locally. On Heroku it recognizes the CounselDevice
extension of Device
but does not register my updates to django-fcm
for some reason.
I will have to investigate later.
Yes!!! Forcing editable mode caused the changes to register on the deployed app. https://github.com/jwjimmy/counsel/commit/27e11065f3497a2a0d676545b7b3372dcdbd0222
I have no clue why this is the case... supposedly Heroku is fetching all of the code from the git repo I specify in requirements.txt
either way.
But prepending -e
causes it to work.
How to extend the Device model: https://django-fcm.readthedocs.io/en/latest/extending_device.html
This is an example of someone extending the Device model to have User as a foreign key: https://github.com/Chitrank-Dixit/django-fcm/issues/29