Here's what I did instead of Thomas's suggestion. Please note that I refused to use the receiver decoder so that it still worked up to 1.3.
(This requires a major correction).
from django.db import models from people.models import Member from django.contrib.sessions.models import Session from django.contrib.sessions.backends.db import SessionStore from django.db.models import * from django.db.models.signals import post_save, pre_delete, post_init
I hope that someone can fix this for me, because I cannot believe that this is the most effective way to do this.
First of all, this adds TWO additional database deletes (on the first try: sessioninfo = SessionInfo.objects.get (session = instance)) every time the session is changed.
The first is obvious during the search. The second occurs when salvation occurs, again starting the whole process.
What to do instead?
source share