forked from Minecraft/minecraft_manager
parent
cb460e10c2
commit
03d343e44b
|
@ -170,7 +170,8 @@ 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):
|
||||||
|
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)
|
||||||
|
|
Loading…
Reference in New Issue