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