Skip to content

Commit c9db218

Browse files
committed
Increased the DocumentURL.url field length to the legal URL maximum of 2083
- Legacy-Id: 15972
1 parent 137159f commit c9db218

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11.20 on 2019-02-25 13:02
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations, models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('doc', '0009_move_non_url_externalurls_to_uploaded_filename'),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name='documenturl',
17+
name='url',
18+
field=models.URLField(max_length=2083),
19+
),
20+
]

ietf/doc/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ class DocumentURL(models.Model):
836836
doc = ForeignKey(Document)
837837
tag = ForeignKey(DocUrlTagName)
838838
desc = models.CharField(max_length=255, default='', blank=True)
839-
url = models.URLField(max_length=512)
839+
url = models.URLField(max_length=2083) # 2083 is the legal max for URLs
840840

841841
class RelatedDocHistory(models.Model):
842842
source = ForeignKey('DocHistory')

0 commit comments

Comments
 (0)