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