Skip to content
Advertisement

simple comment code won’t collaborate with notification app

my code for comment works fine but as soon as I add notification feature it doesn’t work, while notification kinda works. I’m using django-notification-hq 3rd party app. from here: https://github.com/django-notifications/django-notifications

here’s my code

JavaScript

views.py

JavaScript

urls.py

JavaScript

I added this single line,

JavaScript

My new model

JavaScript

Advertisement

Answer

You are overwriting the save-method on the model, you need to pass the arguments to super() afterwards to maintain the primary behaviour. The below code should make it work as before:

JavaScript

try this:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement