Sfoglia il codice sorgente

Increase length of CustomLink text and url fields

Jeremy Stretch 6 anni fa
parent
commit
074d0349a1

+ 2 - 2
netbox/extras/migrations/0022_custom_links.py

@@ -16,8 +16,8 @@ class Migration(migrations.Migration):
             fields=[
                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False)),
                 ('name', models.CharField(max_length=100, unique=True)),
-                ('text', models.CharField(max_length=200)),
-                ('url', models.CharField(max_length=200)),
+                ('text', models.CharField(max_length=500)),
+                ('url', models.CharField(max_length=500)),
                 ('weight', models.PositiveSmallIntegerField(default=100)),
                 ('group_name', models.CharField(blank=True, max_length=50)),
                 ('button_class', models.CharField(default='default', max_length=30)),

+ 2 - 2
netbox/extras/models.py

@@ -331,11 +331,11 @@ class CustomLink(models.Model):
         unique=True
     )
     text = models.CharField(
-        max_length=200,
+        max_length=500,
         help_text="Jinja2 template code for link text"
     )
     url = models.CharField(
-        max_length=200,
+        max_length=500,
         verbose_name='URL',
         help_text="Jinja2 template code for link URL"
     )