Эх сурвалжийг харах

Hue [py3] Revert django-axes's accessattempt and accesslog Model removal of trusted column

(cherry picked from commit 2b95353133ec79f0435485e77cbee50312c1315d)
Prakash Ranade 3 жил өмнө
parent
commit
c2869cbc35

+ 20 - 0
desktop/core/ext-py3/django-axes-5.13.0/axes/migrations/0007_add_accesslog_trusted.py

@@ -0,0 +1,20 @@
+# Revert field drop to keep the DB backward compatible with old Hue
+
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('axes', '0006_remove_accesslog_trusted'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='accesslog',
+            name='trusted',
+            field=models.BooleanField(db_index=True, default=False),
+        ),
+    ]
+