4. Extending device model¶
Allows you to store additional data in the device model (e.g. foreign key to the user)
4.1. Device model¶
In your application, you need to create your own Device model. This model has to inherit from fcm.models.AbstractDevice.
# import the AbstractDevice class to inherit from from fcm.models import AbstractDevice class MyDevice(AbstractDevice): pass
4.2. Use your model¶
In the end, you have to inform django-fcm where it can find your model.
Add appropriate path to the
FCM_DEVICE_MODEL = 'your_app.MyDevice'