Don't change the password of another member (+ minor fixes on WEI app)
This commit is contained in:
parent
eb39aff1ab
commit
8c0ccdfdd0
6 changed files with 15 additions and 16 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue