Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Updated UploadFile.file length from 100 -> 1000 to mirror increase in…
Browse files Browse the repository at this point in the history
… UploadedData.upload_dir.
  • Loading branch information
JivanAmara committed Oct 29, 2016
1 parent d709c0a commit 930c68a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions osgeo_importer/migrations/0007_auto_20161025_2130.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
import osgeo_importer.models


class Migration(migrations.Migration):

dependencies = [
('osgeo_importer', '0006_auto_20161007_1723'),
]

operations = [
migrations.AlterField(
model_name='uploadfile',
name='file',
field=models.FileField(max_length=1000, upload_to=b'uploads', validators=[osgeo_importer.models.validate_file_extension, osgeo_importer.models.validate_inspector_can_read]),
),
]
2 changes: 1 addition & 1 deletion osgeo_importer/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def __unicode__(self):

class UploadFile(models.Model):
upload = models.ForeignKey(UploadedData, null=True, blank=True)
file = models.FileField(upload_to="uploads", validators=[validate_file_extension, validate_inspector_can_read])
file = models.FileField(upload_to="uploads", max_length=1000, validators=[validate_file_extension, validate_inspector_can_read])
file_type = models.CharField(max_length=50, null=True, blank=True)
slug = models.SlugField(max_length=250, blank=True)

Expand Down

0 comments on commit 930c68a

Please sign in to comment.