Skip to content

Commit

Permalink
Increase allowed length of UploadedData.name to accomodate longer fil…
Browse files Browse the repository at this point in the history
…enames per issue GeoNode#80.
  • Loading branch information
JivanAmara committed Jan 9, 2017
1 parent d284dc1 commit 82dd02e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions osgeo_importer/migrations/0010_auto_20170109_1401.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('osgeo_importer', '0009_mapproxycacheconfig'),
]

operations = [
migrations.AlterField(
model_name='uploadeddata',
name='name',
field=models.CharField(max_length=250, null=True),
),
]
2 changes: 1 addition & 1 deletion osgeo_importer/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class UploadedData(models.Model):
state = models.CharField(max_length=16)
date = models.DateTimeField('date', auto_now_add=True)
upload_dir = models.CharField(max_length=1000, null=True)
name = models.CharField(max_length=64, null=True)
name = models.CharField(max_length=250, null=True)
complete = models.BooleanField(default=False)
size = models.IntegerField(null=True, blank=True)
metadata = models.TextField(null=True)
Expand Down

0 comments on commit 82dd02e

Please sign in to comment.