diff --git a/models.py b/models.py index 1dfadd4..27e8bb1 100644 --- a/models.py +++ b/models.py @@ -171,9 +171,9 @@ class Player(models.Model): def ips(self): ips = [] if not getattr(self.auth_user, 'is_active', False): - query = IP.objects.filter(player=self) - for q in query: - ips.append(q.ip) + query = IP.objects.filter(player=self) + for q in query: + ips.append(q.ip) return " ".join(ips) def __str__(self):