From 0d15cb0e1483a6ae926085fd0bdb36573ccbf092 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 30 Oct 2017 11:07:45 +0000 Subject: [PATCH] Permit document urls to be up to 512 bytes, rather than the default 200 - Legacy-Id: 14230 --- .../doc/migrations/0035_auto_20171029_1414.py | 20 +++++++++++++++++++ ietf/doc/models.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 ietf/doc/migrations/0035_auto_20171029_1414.py diff --git a/ietf/doc/migrations/0035_auto_20171029_1414.py b/ietf/doc/migrations/0035_auto_20171029_1414.py new file mode 100644 index 000000000..b369682c0 --- /dev/null +++ b/ietf/doc/migrations/0035_auto_20171029_1414.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.8 on 2017-10-29 14:14 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('doc', '0034_documenturl'), + ] + + operations = [ + migrations.AlterField( + model_name='documenturl', + name='url', + field=models.URLField(max_length=512), + ), + ] diff --git a/ietf/doc/models.py b/ietf/doc/models.py index 26d64659d..2e5544e13 100644 --- a/ietf/doc/models.py +++ b/ietf/doc/models.py @@ -787,7 +787,7 @@ class DocumentURL(models.Model): doc = models.ForeignKey(Document) tag = models.ForeignKey(DocUrlTagName) desc = models.CharField(max_length=255, default='', blank=True) - url = models.URLField() + url = models.URLField(max_length=512) class RelatedDocHistory(models.Model): source = models.ForeignKey('DocHistory')