Skip to content

Commit fade2d5

Browse files
committed
Increase max_length of UserTaskArtifact.url
1 parent a1c3247 commit fade2d5

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

CHANGELOG.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ Unreleased
1616

1717
*
1818

19+
[0.1.6] - 2019-05-29
20+
~~~~~~~~~~~~~~~~~~~~
21+
22+
Changed
23+
+++++++
24+
25+
* Upgrade requirements.
26+
* Change ``max_length`` of ``UserTaskArtifact.url`` from 200 to 512.
27+
28+
1929
[0.1.5] - 2017-08-03
2030
~~~~~~~~~~~~~~~~~~~~
2131

user_tasks/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from django.dispatch import Signal
88

9-
__version__ = '0.1.5'
9+
__version__ = '0.1.6'
1010

1111
default_app_config = 'user_tasks.apps.UserTasksConfig' # pylint: disable=invalid-name
1212

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-05-29 13:03
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+
('user_tasks', '0002_artifact_file_storage'),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name='usertaskartifact',
17+
name='url',
18+
field=models.URLField(blank=True, max_length=512),
19+
),
20+
]

user_tasks/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class UserTaskArtifact(TimeStampedModel):
237237
help_text='Distinguishes between multiple artifact types for the same task')
238238
file = models.FileField(null=True, blank=True, storage=settings.USER_TASKS_ARTIFACT_STORAGE,
239239
upload_to='user_tasks/%Y/%m/%d/')
240-
url = models.URLField(blank=True)
240+
url = models.URLField(blank=True, max_length=512)
241241
text = models.TextField(blank=True)
242242

243243
def __str__(self):

0 commit comments

Comments
 (0)