Chitrank-Dixit / django-fcm

Django FCM provides firebase cloud messaging to android or ios support for django apps
https://django-fcm.readthedocs.io/en/latest/
MIT License
54 stars 28 forks source link

get_device_model() does not exist in models.py file #19

Closed hibernatedguy closed 8 years ago

hibernatedguy commented 8 years ago
Issue is with "fcm/forms.py" and "fcm/admin.py" files.

from .models import get_device_model
ImportError: cannot import name 'get_device_model'

get_device_model() is not implemented in models.py file,

can be solved by adding below snippet in forms.py and admin.py files,

from .utils import get_device_model()