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

Commit

Permalink
minor flake8 cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasha Hart committed Oct 31, 2016
1 parent e74bf14 commit e762099
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions osgeo_importer/handlers/geonode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def handle(self, layer, layer_config, *args, **kwargs):

return results


class GeoNodeMetadataHandler(ImportHandlerMixin):
"""Import uploaded XML
"""
Expand Down
9 changes: 8 additions & 1 deletion osgeo_importer/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,14 @@ def __unicode__(self):

class UploadFile(models.Model):
upload = models.ForeignKey(UploadedData, null=True, blank=True)
file = models.FileField(upload_to="uploads", max_length=1000, 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 e762099

Please sign in to comment.