Custom Notification Model field not created on notify.send
See original GitHub issueHi, I am trying to add a new field to the Notification model. Currently in my main/models.py
i have:
class Notification(AbstractNotification):
# custom field example
unique_uuid = models.CharField(max_length=255,unique=True, null=True)
class Meta(AbstractNotification.Meta):
abstract = False
app_label = 'main'
Now in my settings.py
file I have:
NOTIFICATIONS_NOTIFICATION_MODEL = 'main.Notification'
NOTIFICATIONS_USE_JSONFIELD=True
I am trying to generate a notification in my views.py
by using:
notify.send(sender=user, recipient=post.author, verb=message, target=post, \
unique_uuid = notification_create_uuid(...))
However, the notification is not being created correctly and the field is returning “None”. How can I set this field in notify.send(), so that the notification is created with that field set?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:8
Top Results From Across the Web
Conflict model when create custom Notification inherit from ...
The original Notification model is swappable, if you have configured NOTIFICATIONS_NOTIFICATION_MODEL settings properly, it should work ...
Read more >IntegrityError while trying to send a notification with django ...
Ok, I found the problem. For some reason south was using InnoDB storage engine as a default while all my tables have MyISAM...
Read more >Notification::send with non-existing user model - Laracasts
Hi, Is it possible to send a notification to a non-existing user model? ... So for the custom email addresses I created a...
Read more >Manage Your Notifications with Notification Builder
Create custom notifications to give your users new information and reminders. Choose whether Salesforce notifications appear on desktop, mobile, Slack, or at ...
Read more >How to set up user notifications for your Django app - Part 1
We added business logic to create a notification instance whenever the signal is received. notify.send is a signal provided by the Django- ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can this PR please be merged? @pandafy
Thx, it really works 😃