hagsteel / swampdragon

swampdragon
Other
556 stars 73 forks source link

Mensaje sent to user with different primary key. #175

Open YeisonVargas opened 9 years ago

YeisonVargas commented 9 years ago

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!