From 7df76d025e72f782f32da1e3c32517b6cd902fba Mon Sep 17 00:00:00 2001 From: guohelu <19503896967@163.com> Date: Fri, 13 Dec 2024 15:50:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=20#7626?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gcloud/contrib/template_market/migrations/0001_initial.py | 4 ++-- gcloud/contrib/template_market/models.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcloud/contrib/template_market/migrations/0001_initial.py b/gcloud/contrib/template_market/migrations/0001_initial.py index cec3f81dd..55f205cd3 100644 --- a/gcloud/contrib/template_market/migrations/0001_initial.py +++ b/gcloud/contrib/template_market/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 3.2.15 on 2024-12-13 07:21 +# Generated by Django 3.2.15 on 2024-12-13 07:48 from django.db import migrations, models @@ -15,7 +15,7 @@ class Migration(migrations.Migration): fields=[ ("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), ("project_id", models.IntegerField(default=-1, help_text="项目 ID", verbose_name="项目 ID")), - ("template_id", models.IntegerField(db_index=True, help_text="模板 ID 列表", verbose_name="模板 ID 列表")), + ("template_id", models.IntegerField(db_index=True, help_text="模板 ID", verbose_name="模板 ID ")), ("creator", models.CharField(default="", max_length=32, verbose_name="创建者")), ("create_at", models.DateTimeField(auto_now_add=True, verbose_name="创建时间")), ("update_at", models.DateTimeField(auto_now=True, verbose_name="更新时间")), diff --git a/gcloud/contrib/template_market/models.py b/gcloud/contrib/template_market/models.py index e47b8dbf7..1b761dbe7 100644 --- a/gcloud/contrib/template_market/models.py +++ b/gcloud/contrib/template_market/models.py @@ -65,7 +65,7 @@ def update_shared_record(self, new_template_ids, market_record_id, project_id, c class TemplateSharedRecord(models.Model): project_id = models.IntegerField(_("项目 ID"), default=-1, help_text="项目 ID") - template_id = models.IntegerField(_("模板 ID 列表"), help_text="模板 ID 列表", db_index=True) + template_id = models.IntegerField(_("模板 ID"), help_text="模板 ID", db_index=True) creator = models.CharField(_("创建者"), max_length=32, default="") create_at = models.DateTimeField(_("创建时间"), auto_now_add=True) update_at = models.DateTimeField(verbose_name=_("更新时间"), auto_now=True)