try to debug database bug
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
# Generated by Django 5.1.2 on 2025-02-20 22:25
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('account', '0019_alter_securitybreachattemptmodel_ip'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='securitybreachattemptmodel',
|
||||||
|
name='ip',
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# Generated by Django 5.1.2 on 2025-02-20 22:25
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('account', '0020_remove_securitybreachattemptmodel_ip'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='securitybreachattemptmodel',
|
||||||
|
name='ip',
|
||||||
|
field=models.CharField(default='', max_length=100, verbose_name='آدرس آی\u200cپی'),
|
||||||
|
preserve_default=False,
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -217,7 +217,7 @@ def get_location_from_ip(ip_address):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
class SecurityBreachAttemptModel(models.Model):
|
class SecurityBreachAttemptModel(models.Model):
|
||||||
ip = models.CharField(max_length=100, unique=True, verbose_name="آدرس آیپی")
|
ip = models.CharField(max_length=100, verbose_name="آدرس آیپی")
|
||||||
country = models.CharField(max_length=40, verbose_name="کشور", blank=True, null=True)
|
country = models.CharField(max_length=40, verbose_name="کشور", blank=True, null=True)
|
||||||
region_name = models.CharField(max_length=40, verbose_name="منطقه", blank=True, null=True)
|
region_name = models.CharField(max_length=40, verbose_name="منطقه", blank=True, null=True)
|
||||||
city = models.CharField(max_length=40, verbose_name="شهر", blank=True, null=True)
|
city = models.CharField(max_length=40, verbose_name="شهر", blank=True, null=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user