diff --git a/backend/account/models.py b/backend/account/models.py index 8a3c264..44db459 100644 --- a/backend/account/models.py +++ b/backend/account/models.py @@ -238,7 +238,7 @@ class SecurityBreachAttemptModel(models.Model): super().save(*args, **kwargs) def __str__(self): - return f'تلاش نفوذ از {self.ip} در {self.city}, {self.country}' + return f'تلاش نفوذ از {self.ip_address} در {self.city}, {self.country}' class Meta: verbose_name = "تلاش نفوذ" verbose_name_plural = "تلاش‌های نفوذ" \ No newline at end of file diff --git a/backend/templates/loction_chagne_form.html b/backend/templates/loction_chagne_form.html index e03f446..34d4ae8 100644 --- a/backend/templates/loction_chagne_form.html +++ b/backend/templates/loction_chagne_form.html @@ -95,10 +95,10 @@ {{ original.isp }} {% endif %} - {% if original.ip %} + {% if original.ip_address %} - {{ original.ip }} + {{ original.ip_address }} {% endif %}