فهرست منبع

Fixes #2962: Increase ExportTemplate mime_type field length

Jeremy Stretch 7 سال پیش
والد
کامیت
cfb56f7cfe
3فایلهای تغییر یافته به همراه20 افزوده شده و 1 حذف شده
  1. 1 0
      CHANGELOG.md
  2. 18 0
      netbox/extras/migrations/0017_exporttemplate_mime_type_length.py
  3. 1 1
      netbox/extras/models.py

+ 1 - 0
CHANGELOG.md

@@ -9,6 +9,7 @@ v2.5.8 (FUTURE)
 * [#2939](https://github.com/digitalocean/netbox/issues/2939) - Exclude circuit terminations from API interface connections endpoint
 * [#2939](https://github.com/digitalocean/netbox/issues/2939) - Exclude circuit terminations from API interface connections endpoint
 * [#2952](https://github.com/digitalocean/netbox/issues/2952) - Added the `slug` field to the Tenant filter for use in the API and search function
 * [#2952](https://github.com/digitalocean/netbox/issues/2952) - Added the `slug` field to the Tenant filter for use in the API and search function
 * [#2954](https://github.com/digitalocean/netbox/issues/2954) - Remove trailing slashes to fix root/template paths on Windows
 * [#2954](https://github.com/digitalocean/netbox/issues/2954) - Remove trailing slashes to fix root/template paths on Windows
+* [#2962](https://github.com/digitalocean/netbox/issues/2962) - Increase ExportTemplate `mime_type` field length
 
 
 ---
 ---
 
 

+ 18 - 0
netbox/extras/migrations/0017_exporttemplate_mime_type_length.py

@@ -0,0 +1,18 @@
+# Generated by Django 2.1.7 on 2019-03-05 18:07
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('extras', '0016_exporttemplate_add_cable'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='exporttemplate',
+            name='mime_type',
+            field=models.CharField(blank=True, max_length=50),
+        ),
+    ]

+ 1 - 1
netbox/extras/models.py

@@ -357,7 +357,7 @@ class ExportTemplate(models.Model):
     )
     )
     template_code = models.TextField()
     template_code = models.TextField()
     mime_type = models.CharField(
     mime_type = models.CharField(
-        max_length=15,
+        max_length=50,
         blank=True
         blank=True
     )
     )
     file_extension = models.CharField(
     file_extension = models.CharField(