Comments (8)
In my application I need device-session-user schema.
I don't think that renaming of the variable is a good idea. With that we should rename field too. In the end, this will create problems with backward compatibility or clarity. And this problems cannot be resolved within small pull request.
from fcm-django.
I am not sure why exactly is this necessary, you will find in official django docs that changing the auth user model is via AUTH_USER_MODEL settings variable.
from fcm-django.
This is necessary if you need to change model to which device's user field refer without changing AUTH_USER_MODEL. I.e to bind the device to non-user model. I think for this we need separate settings variable in the FCM_DJANGO_SETTINGS.
from fcm-django.
Alright, if the point is to point to a non-user model, perhaps we should name the variable differently. Something like DEVICE_FOREIGN_KEY. Although is there a specific reason you need this? I'm just trying to envision why this would be necessary
from fcm-django.
relation "fcm_django_fcmdevice" does not exist
what could be it's reason?
from fcm-django.
In my application I need device-session-user schema.
I don't think that renaming of the variable is a good idea. With that we should rename field too. In the end, this will create problems with backward compatibility or clarity. And this problems cannot be resolved within small pull request.
I'm having the exact same problem. For us, this creates a circular dependency between the model and our application: we extend the FCMDevice model, but the user-model on the FCMDevice needs to point to another model in our application. Hence, an circular dependency exists.
from fcm-django.
Everything is fine except that the file migrations/0001_initial.py
uses settings.AUTH_USER_MODEL
instead of FCM_DJANGO_SETTINGS['USER_MODEL']
, so running ./manage.py migrate
creates the fcm_django_fcmdevice
database table with the wrong foreign key (in case FCM_DJANGO_SETTINGS['USER_MODEL']
is not the same as settings.AUTH_USER_MODEL
).
Please fix this.
from fcm-django.
Resolved @ #33
from fcm-django.
Related Issues (20)
- send_message is returning FirebaseError, Instead of raising Error. This makes try except impossible to catch error. Is this intentional or can we change it to raise error. HOT 5
- How to register ios devices? HOT 5
- "error": "Server Error (500)" HOT 4
- Setting `content_available: True` HOT 2
- is_cool=True from the docs HOT 1
- user and device type filters in admin dashboard HOT 1
- `InvalidArgumentError` should not cause deactivation of token HOT 8
- Celery and FCM-django HOT 1
- Problem with sending notifications to topic in bulk HOT 7
- Sound and Badge not working when notification arrives in IOS HOT 4
- Documentation about installing with pip seems to be broken on readthedocs HOT 3
- Can this package be compatible with firebase-admin 6? HOT 5
- Add updated_at field HOT 8
- Backward compatible Updates!!!!! HOT 3
- unique registration_id as textfield broken on mysql HOT 11
- USER_MODEL configuration in FCM_DJANGO_SETTINGS not working HOT 5
- Compatibility with Python 3.11 and Django 4.2 HOT 1
- Deprecated send_all() and send_multicast() methods HOT 6
- set badge count dynamically by user HOT 3
- Issue in migration HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fcm-django.