Skip to content

Commit

Permalink
updates model to allow blanks
Browse files Browse the repository at this point in the history
  • Loading branch information
dxenes1 committed Aug 5, 2021
1 parent 8662092 commit 2a86f9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django/bosscore/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class StorageType:

# Optional CloudVolume path. If storage_type == StorageType.CLOUD_VOLUME,
# then instantiate CloudVolume with: f"s3://{bucket}{cv_path}"
cv_path = models.CharField(null=True, max_length=2000)
cv_path = models.CharField(null=True, blank=True, max_length=2000)

class Meta:
db_table = u"channel"
Expand Down
5 changes: 4 additions & 1 deletion django/mgmt/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ class ChannelForm(UpdateForm):
bucket = forms.CharField(required=False, empty_value=f'cuboids{domain}',
help_text=f'(default is cuboids{domain})',
label='Bucket Name')
cv_path = forms.CharField(required=False, help_text='CloudVolume path', label='CloudVolume Path')

cv_path = forms.CharField(required=False,
help_text='Public S3 URI to Cloudvolume Dataset',
label='CloudVolume Path')

type = forms.ChoiceField(choices=[(c,c) for c in ['', 'image', 'annotation']],
help_text="image = source image dataset<br>annotation = label dataset")
Expand Down

0 comments on commit 2a86f9e

Please sign in to comment.