Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mensaje sent to user with different primary key. #175

Open
YeisonVargas opened this issue Nov 14, 2015 · 0 comments
Open

Mensaje sent to user with different primary key. #175

YeisonVargas opened this issue Nov 14, 2015 · 0 comments

Comments

@YeisonVargas
Copy link

Hello,

I am using swampdragon, I have a model named "Notification" that used a "SelfPublishModel" and the Router is a "ModelPubRouter", inside of notification router I have:

def get_subscription_contexts(self, **kwargs):
    if self.connection.user is None:
        return {}
    return {'user__id': self.connection.user.pk}

That was worked very well before in several tests, but after an user tells me that He had received a notification from other user. I seen the error and it's true, but i don't know what is the problem...

@jonashagstedt I hope that you can help me! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant