Don't change the password of another member (+ minor fixes on WEI app)

This commit is contained in:
Yohann D'ANELLO 2020-04-27 20:25:02 +02:00
parent eb39aff1ab
commit 8c0ccdfdd0
6 changed files with 15 additions and 16 deletions

View file

@ -119,7 +119,7 @@ class Profile(models.Model):
def soge(self):
if "treasury" in settings.INSTALLED_APPS:
from treasury.models import SogeCredit
return SogeCredit.objects.filter(user=self.user, credit_transaction=None).exists()
return SogeCredit.objects.filter(user=self.user, credit_transaction__isnull=False).exists()
return False
class Meta: