From e48550888c333726afec1ac8af3016688a16c7be Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Fri, 21 Feb 2025 02:02:35 +0330 Subject: [PATCH] some field name changes --- backend/account/models.py | 2 +- backend/templates/loction_chagne_form.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 %}