parent
cb460e10c2
commit
03d343e44b
|
@ -170,9 +170,10 @@ class Player(models.Model):
|
||||||
@property
|
@property
|
||||||
def ips(self):
|
def ips(self):
|
||||||
ips = []
|
ips = []
|
||||||
query = IP.api.filter(player=self)
|
if not getattr(self.auth_user, 'is_active', False):
|
||||||
for q in query:
|
query = IP.objects.filter(player=self)
|
||||||
ips.append(q.ip)
|
for q in query:
|
||||||
|
ips.append(q.ip)
|
||||||
return " ".join(ips)
|
return " ".join(ips)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
Loading…
Reference in New Issue