Increased the DocumentURL.url field length to the legal URL maximum of 2083
- Legacy-Id: 15972
This commit is contained in:
parent
137159fd41
commit
c9db218e31
ietf/doc
20
ietf/doc/migrations/0010_auto_20190225_1302.py
Normal file
20
ietf/doc/migrations/0010_auto_20190225_1302.py
Normal 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),
|
||||
),
|
||||
]
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue