can_set_file_type property changes to include checks for nc
@@ -1869,8 +1869,8 @@ class ResourceFile(models.Model):
@property
def can_set_file_type(self):
# currently user can set file type only for files with extension
- # tif or zip.
- return self.extension in ('.tif', '.zip') and (self.logical_file is None or
+ # tif, zip and nc.
+ return self.extension in ('.tif', '.zip', '.nc') and (self.logical_file is None or
self.logical_file_type_name ==
"GenericLogicalFile")
