From 9541a992734eab86880bb1560a026cec3a84a8ca Mon Sep 17 00:00:00 2001 From: Bai Date: Mon, 13 Jul 2020 11:30:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(assets):=20=E4=BF=AE=E5=A4=8D=E7=94=A8?= =?UTF-8?q?=E6=88=B7name=E5=AD=97=E6=AE=B5=E9=95=BF=E5=BA=A6=E4=B8=8E?= =?UTF-8?q?=E8=B5=84=E4=BA=A7created=5Fby=E5=AD=97=E6=AE=B5=E9=95=BF?= =?UTF-8?q?=E5=BA=A6=E4=B8=8D=E4=B8=80=E8=87=B4=E5=AF=BC=E8=87=B4=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E8=B5=84=E4=BA=A7=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0050_auto_20200711_1740.py | 18 ++++++++++++++++++ apps/assets/models/asset.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 apps/assets/migrations/0050_auto_20200711_1740.py diff --git a/apps/assets/migrations/0050_auto_20200711_1740.py b/apps/assets/migrations/0050_auto_20200711_1740.py new file mode 100644 index 000000000..231fcfbe4 --- /dev/null +++ b/apps/assets/migrations/0050_auto_20200711_1740.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.10 on 2020-07-11 09:40 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('assets', '0049_systemuser_sftp_root'), + ] + + operations = [ + migrations.AlterField( + model_name='asset', + name='created_by', + field=models.CharField(blank=True, max_length=128, null=True, verbose_name='Created by'), + ), + ] diff --git a/apps/assets/models/asset.py b/apps/assets/models/asset.py index 20c040f74..2f4fa0b0a 100644 --- a/apps/assets/models/asset.py +++ b/apps/assets/models/asset.py @@ -221,7 +221,7 @@ class Asset(ProtocolsMixin, NodesRelationMixin, OrgModelMixin): hostname_raw = models.CharField(max_length=128, blank=True, null=True, verbose_name=_('Hostname raw')) labels = models.ManyToManyField('assets.Label', blank=True, related_name='assets', verbose_name=_("Labels")) - created_by = models.CharField(max_length=32, null=True, blank=True, verbose_name=_('Created by')) + created_by = models.CharField(max_length=128, null=True, blank=True, verbose_name=_('Created by')) date_created = models.DateTimeField(auto_now_add=True, null=True, blank=True, verbose_name=_('Date created')) comment = models.TextField(max_length=128, default='', blank=True, verbose_name=_('Comment'))