Increased the DocumentURL.url field length to the legal URL maximum of 2083

- Legacy-Id: 15972
This commit is contained in:
Henrik Levkowetz 2019-02-25 21:05:25 +00:00
parent 137159fd41
commit c9db218e31
2 changed files with 21 additions and 1 deletions

View file

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-02-25 13:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('doc', '0009_move_non_url_externalurls_to_uploaded_filename'),
]
operations = [
migrations.AlterField(
model_name='documenturl',
name='url',
field=models.URLField(max_length=2083),
),
]

View file

@ -836,7 +836,7 @@ class DocumentURL(models.Model):
doc = ForeignKey(Document)
tag = ForeignKey(DocUrlTagName)
desc = models.CharField(max_length=255, default='', blank=True)
url = models.URLField(max_length=512)
url = models.URLField(max_length=2083) # 2083 is the legal max for URLs
class RelatedDocHistory(models.Model):
source = ForeignKey('DocHistory')