Open miratcan opened 4 years ago
Yeah having this issue, trying to assess what the solution is.
The issue has to do with the delete() method calling super.
def delete(self, *args, **kwargs):
vote_changed.send(sender=self)
super(Vote, self).delete(*args, **kwargs)
Changing the order of the signal seemed to work for me. That or removing the delete method entirely. Something about the primary key being none when it tries to hash. Would need other people to test and verify to find the proper solution.
Hi, I'm not maintaining the code ATM. If you send pull request I can accept.
JJ Zolper @.***>, 28 Şub 2022 Pzt, 05:23 tarihinde şunu yazdı:
The issue has to do with the delete() method calling super.
def delete(self, *args, **kwargs): vote_changed.send(sender=self) super(Vote, self).delete(*args, **kwargs)
Changing the order of the signal seemed to work for me. That or removing the delete method entirely. Something about the primary key being none when it tries to hash. Would need other people to test and verify to find the proper solution.
— Reply to this email directly, view it on GitHub https://github.com/miratcan/qhonuskan-votes/issues/31#issuecomment-1053807538, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABCNKFZK7VCUT4WAHTU6GLU5LMDTANCNFSM4PDJSNNA . You are receiving this because you authored the thread.Message ID: @.***>