From 3c3bb556db2d7a50f234f5272de9056d0fb93c34 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 2 Mar 2023 23:30:51 +0800 Subject: [PATCH] =?UTF-8?q?monitor=20drflog=20view=5Fmethod=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0003_alter_drfrequestlog_view_method.py | 18 ++++++++++++++++++ apps/monitor/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 apps/monitor/migrations/0003_alter_drfrequestlog_view_method.py diff --git a/apps/monitor/migrations/0003_alter_drfrequestlog_view_method.py b/apps/monitor/migrations/0003_alter_drfrequestlog_view_method.py new file mode 100644 index 00000000..b39f8aa5 --- /dev/null +++ b/apps/monitor/migrations/0003_alter_drfrequestlog_view_method.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2023-03-02 15:27 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('monitor', '0002_drfrequestlog_user'), + ] + + operations = [ + migrations.AlterField( + model_name='drfrequestlog', + name='view_method', + field=models.CharField(blank=True, db_index=True, max_length=50, null=True), + ), + ] diff --git a/apps/monitor/models.py b/apps/monitor/models.py index a3d8c30e..d20c77dc 100755 --- a/apps/monitor/models.py +++ b/apps/monitor/models.py @@ -29,7 +29,7 @@ class DrfRequestLog(BaseModel): help_text="执行视图", ) view_method = models.CharField( - max_length=20, + max_length=50, null=True, blank=True, db_index=True,