浏览代码

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

(cherry picked from commit 2b95353133ec79f0435485e77cbee50312c1315d)
Prakash Ranade 3 年之前
父节点
当前提交
c2869cbc35
共有 1 个文件被更改,包括 20 次插入0 次删除
  1. 20 0
      desktop/core/ext-py3/django-axes-5.13.0/axes/migrations/0007_add_accesslog_trusted.py

+ 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),
+        ),
+    ]
+