Admin interfaces
This module defines the thredds-control-center Admin interfaces.
Classes:
|
Admin for a aggregation dataset. |
|
Admin for the CatalogRef model. |
|
Usage of Django query as a scheduler |
|
Admin for the Creator model. |
|
Admin for a datasetScan. |
|
Admin for the Documentation model. |
|
Admin for the THREDDS enhancedCatalog model. |
|
Inline for editing WMSOverride in the WMSConfig. |
|
Inline for editing EnhancedDatasetScanFilters in the EnhancedDatasetScan. |
|
Inline for editing EnhancedDatasetScan in the enhancedCatalog. |
|
Inline for editing EnhancedDatasetScanVariables in the EnhancedDatasetScan. |
|
Inline for editing FAQs in the category admin. |
|
Inline for editing FAQs in the category admin. |
|
Admin for the Publisher model. |
|
Admin for a simple dataset. |
|
Admin for the TDSCatalog model. |
|
Admin for the TDSServer model. |
|
Admin for the THREDDS wmsCongig model. |
|
Inline for editing WMSOverride in the WMSConfig. |
|
Inline for editing WMSStandardName in the WMSConfig. |
|
Inline for editing WMSVariable in the WMSConfig. |
- class tds_control.admin.AggregationDatasetAdmin(model, admin_site)
Bases:
GuardedModelAdmin
Admin for a aggregation dataset.
Methods:
get_form
(request[, obj])Restrict the catalog choices to the user's catalogs.
get_model_objects
(request[, action, klass])Get the model objects.
get_model_objects_catalog
(request[, action, ...])Get the model objects.
get_queryset
(request)Get the queryset.
has_add_permission
(request[, obj])Check the add permission.
has_change_permission
(request[, obj])Check the change permission.
has_delete_permission
(request[, obj])Check the delete permission.
has_module_permission
(request)Check the module permission.
has_permission
(request, obj, action)Check the permission.
has_view_permission
(request[, obj])Check the view permission.
Attributes:
- get_form(request, obj=<class 'tds_control.models.TDSCatalog'>, **kwargs)
Restrict the catalog choices to the user’s catalogs.
- get_model_objects(request, action=None, klass=None)
Get the model objects.
- get_model_objects_catalog(request, action=None, klass=None)
Get the model objects.
- get_queryset(request)
Get the queryset.
- has_add_permission(request, obj=None)
Check the add permission.
- has_change_permission(request, obj=None)
Check the change permission.
- has_delete_permission(request, obj=None)
Check the delete permission.
- has_module_permission(request)
Check the module permission.
- has_permission(request, obj, action)
Check the permission.
- has_view_permission(request, obj=None)
Check the view permission.
- inlines = [<class 'tds_control.admin.NetCDFFileInline'>, <class 'tds_control.admin.NetCDFScanInline'>]
- list_display = ['name', 'id', 'catalog', 'url_name', 'aggregation_type']
- list_filter = ['catalog', 'data_type', 'catalog__tdsserver', 'aggregation_type']
- property media
- readonly_fields = ('xml',)
- search_fields = ['name', 'catalog__name', 'catalog__tdsserver__name', 'url_name', 'id']
- class tds_control.admin.CatalogRefInline(parent_model, admin_site)
Bases:
StackedInline
Admin for the CatalogRef model.
Attributes:
Models:
alias of
CatalogRef
- extra = 0
- fk_name = 'conn_catalog'
- property media
- model
alias of
CatalogRef
Miscellaneous:DoesNotExist
MultipleObjectsReturned
Model Fields:
catalog
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
conn_catalog
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
title
A wrapper for a deferred-loading field.
uuid
A wrapper for a deferred-loading field.
Attributes:
catalog_id
conn_catalog_id
objects
- class tds_control.admin.ChildClassAdmin(model, admin_site)
Bases:
ScheduleAdmin
Usage of Django query as a scheduler
Methods:
get_form
(request[, obj])Return a Form class for use in the admin add view.
Attributes:
- get_form(request, obj=<class 'django_q.models.Schedule'>, **kwargs)
Return a Form class for use in the admin add view. This is used by add_view and change_view.
- property media
- class tds_control.admin.CreatorAdmin(model, admin_site)
Bases:
GuardedModelAdmin
Admin for the Creator model.
Attributes:
- property media
- class tds_control.admin.DatasetScanAdmin(model, admin_site)
Bases:
GuardedModelAdmin
Admin for a datasetScan.
Methods:
get_form
(request[, obj])Restrict the DatasetScan choices according to the user's permission.
get_model_objects
(request[, action, klass])Get the model objects.
get_model_objects_catalog
(request[, action, ...])Get the model objects.
get_queryset
(request)Get the queryset.
has_add_permission
(request[, obj])Check the add permission.
has_change_permission
(request[, obj])Check the change permission.
has_delete_permission
(request[, obj])Check the delete permission.
has_module_permission
(request)Check the module permission.
has_permission
(request, obj, action)Check the permission.
has_view_permission
(request[, obj])Check the view permission.
Attributes:
- get_form(request, obj=<class 'tds_control.models.TDSCatalog'>, **kwargs)
Restrict the DatasetScan choices according to the user’s permission.
- get_model_objects(request, action=None, klass=None)
Get the model objects.
- get_model_objects_catalog(request, action=None, klass=None)
Get the model objects.
- get_queryset(request)
Get the queryset.
- has_add_permission(request, obj=None)
Check the add permission.
- has_change_permission(request, obj=None)
Check the change permission.
- has_delete_permission(request, obj=None)
Check the delete permission.
- has_module_permission(request)
Check the module permission.
- has_permission(request, obj, action)
Check the permission.
- has_view_permission(request, obj=None)
Check the view permission.
- list_display = ['name', 'id', 'catalog', 'path', 'location']
- list_filter = ['catalog', 'data_type', 'catalog__tdsserver']
- property media
- readonly_fields = ('xml',)
- search_fields = ['name', 'catalog__name', 'catalog__tdsserver__name', 'location', 'id']
- class tds_control.admin.DocumentationAdmin(model, admin_site)
Bases:
GuardedModelAdmin
Admin for the Documentation model.
Attributes:
- property media
- class tds_control.admin.EnhancedCatalogAdmin(model, admin_site)
Bases:
NestedModelAdmin
Admin for the THREDDS enhancedCatalog model.
Methods:
get_form
(request[, obj])Specify the form to use for the admin page.
get_model_objects
(request[, action, klass])Accessing model items in the AggregationDataset module based on Django-Guardian authorization.
get_model_objects_catalog
(request[, action, ...])get_queryset
(request)Retrieving aggregation datasets querysets for display in the user's AggregationDataset list.
has_add_permission
(request[, obj])Check if the user has permission to add the object.
has_change_permission
(request[, obj])Check if the user has permission to change the object.
has_delete_permission
(request[, obj])Check if the user has permission to delete the object.
has_module_permission
(request)Check the module permission.
has_permission
(request, obj, action)Check the permissions of existing objects and assign permissions to newly-created objects.
has_view_permission
(request[, obj])Check if the user has permission to view the object.
Attributes:
- get_form(request, obj=<class 'tds_control.models.TDSCatalog'>, **kwargs)
Specify the form to use for the admin page.
- get_model_objects(request, action=None, klass=None)
Accessing model items in the AggregationDataset module based on Django-Guardian authorization.
- get_model_objects_catalog(request, action=None, klass=None)
- get_queryset(request)
Retrieving aggregation datasets querysets for display in the user’s AggregationDataset list.
- has_add_permission(request, obj=None)
Check if the user has permission to add the object.
- has_change_permission(request, obj=None)
Check if the user has permission to change the object.
- has_delete_permission(request, obj=None)
Check if the user has permission to delete the object.
- has_module_permission(request)
Check the module permission.
- has_permission(request, obj, action)
Check the permissions of existing objects and assign permissions to newly-created objects.
- has_view_permission(request, obj=None)
Check if the user has permission to view the object.
- inlines = [<class 'tds_control.admin.EnhancedDatasetInline'>, <class 'tds_control.admin.EnhancedDatasetScanInline'>]
- property media
- readonly_fields = ('xml',)
- class tds_control.admin.EnhancedDatasetInline(*args, **kwargs)
Bases:
NestedStackedInline
Inline for editing WMSOverride in the WMSConfig.
Attributes:
Methods:
get_model_objects
(request[, action, klass])Get objects for the given user and action.
has_add_permission
(request[, obj])Check the add permission.
has_change_permission
(request[, obj])Check the change permission.
has_delete_permission
(request[, obj])Check the delete permission.
has_module_permission
(request)Check the module permissions.
has_permission
(request, obj, action)Check the permissions.
has_view_permission
(request[, obj])Check the view permission.
Models:
alias of
EnhancedDataset
- extra = 0
- get_model_objects(request, action=None, klass=None)
Get objects for the given user and action.
- has_add_permission(request, obj=None)
Check the add permission.
- has_change_permission(request, obj=None)
Check the change permission.
- has_delete_permission(request, obj=None)
Check the delete permission.
- has_module_permission(request)
Check the module permissions.
- has_permission(request, obj, action)
Check the permissions.
- has_view_permission(request, obj=None)
Check the view permission.
- property media
- model
alias of
EnhancedDataset
Miscellaneous:DoesNotExist
MultipleObjectsReturned
Model Fields:
data_location
The location of the files that shall be used
enhanced_catalog
EnhancedCatalog that uses this netcdf file
Methods:
get_data_type_display
(*[, field])Attributes:
objects
relative_path
The
location
relative to the catalog root location.url_path
The urlPath attribute for the catalog.
- class tds_control.admin.EnhancedDatasetScanFiltersInline(*args, **kwargs)
Bases:
NestedStackedInline
Inline for editing EnhancedDatasetScanFilters in the EnhancedDatasetScan.
Attributes:
Methods:
get_model_objects
(request[, action, klass])Get objects for the given user and action.
has_add_permission
(request[, obj])Check the add permission.
has_change_permission
(request[, obj])Check the change permission.
has_delete_permission
(request[, obj])Check the delete permission.
has_module_permission
(request)Check the module permissions.
has_permission
(request, obj, action)Check the permissions.
has_view_permission
(request[, obj])Check the view permission.
Models:
alias of
EnhancedDatasetScanFilters
- extra = 0
- fields = ('wildcard',)
- get_model_objects(request, action=None, klass=None)
Get objects for the given user and action.
- has_add_permission(request, obj=None)
Check the add permission.
- has_change_permission(request, obj=None)
Check the change permission.
- has_delete_permission(request, obj=None)
Check the delete permission.
- has_module_permission(request)
Check the module permissions.
- has_permission(request, obj, action)
Check the permissions.
- has_view_permission(request, obj=None)
Check the view permission.
- list_display = ['wildcard']
- property media
- model
alias of
EnhancedDatasetScanFilters
Miscellaneous:DoesNotExist
MultipleObjectsReturned
Model Fields:
enhanced_catalog_datascan
The enhancedCatalog that holds this entry.
enhanceddatasetscansubs_ptr
Accessor to the related object on the forward side of a one-to-one relation.
wildcard
filter string e.g. *eta_211.nc.
Attributes:
enhanced_catalog_datascan_id
enhanceddatasetscansubs_ptr_id
relative_path
The
location
relative to the catalog root location.
- class tds_control.admin.EnhancedDatasetScanInline(*args, **kwargs)
Bases:
NestedStackedInline
Inline for editing EnhancedDatasetScan in the enhancedCatalog.
Attributes:
Methods:
get_model_objects
(request[, action, klass])Get objects for the given user and action.
has_add_permission
(request[, obj])Check the add permission.
has_change_permission
(request[, obj])Check the change permission.
has_delete_permission
(request[, obj])Check the delete permission.
has_module_permission
(request)Check the module permissions.
has_permission
(request, obj, action)Check the permissions.
has_view_permission
(request[, obj])Check the view permission.
Models:
alias of
EnhancedDatasetScan
- extra = 0
- get_model_objects(request, action=None, klass=None)
Get objects for the given user and action.
- has_add_permission(request, obj=None)
Check the add permission.
- has_change_permission(request, obj=None)
Check the change permission.
- has_delete_permission(request, obj=None)
Check the delete permission.
- has_module_permission(request)
Check the module permissions.
- has_permission(request, obj, action)
Check the permissions.
- has_view_permission(request, obj=None)
Check the view permission.
- inlines = [<class 'tds_control.admin.EnhancedDatasetScanVariablesInline'>, <class 'tds_control.admin.EnhancedDatasetScanFiltersInline'>]
- property media
- model
alias of
EnhancedDatasetScan
Miscellaneous:DoesNotExist
MultipleObjectsReturned
Model Fields:
addTimeCoverage_datasetNameMatchPattern
addTimeCoverage datasetNameMatchPattern e.g. ([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})_eta_211.nc$.
addTimeCoverage_duration
addTimeCoverage duration e.g. 60 hours.
addTimeCoverage_startTimeSubstitutionPattern
00
dataset_location
The directory to scan.
documentation_summary
AWIPS 211 (Q) Regional - CONUS (Lambert Conformal).
enhanced_catalog
EnhancedCatalog that uses this netcdf file
geospatial_lat_max
geospatial lat max e.g. 0.0.
geospatial_lat_min
geospatial lat min e.g. 0.0.
geospatial_lon_max
geospatial lon max e.g. 0.0.
geospatial_lon_min
geospatial lon min e.g. 0.0.
path
The path of the dataset.
Attributes:
enhanceddatasetscanfilters_set
Accessor to the related objects manager on the reverse side of a many-to-one relation.
enhanceddatasetscanvariables_set
Accessor to the related objects manager on the reverse side of a many-to-one relation.
objects
relative_path
The
location
relative to the catalog root location.Methods:
get_data_type_display
(*[, field])
- class tds_control.admin.EnhancedDatasetScanVariablesInline(*args, **kwargs)
Bases:
NestedStackedInline
Inline for editing EnhancedDatasetScanVariables in the EnhancedDatasetScan.
Attributes:
Methods:
get_model_objects
(request[, action, klass])Get objects for the given user and action.
has_add_permission
(request[, obj])Check the add permission.
has_change_permission
(request[, obj])Check the change permission.
has_delete_permission
(request[, obj])Check the delete permission.
has_module_permission
(request)Check the module permissions.
has_permission
(request, obj, action)Check the permissions.
has_view_permission
(request[, obj])Check the view permission.
Models:
alias of
EnhancedDatasetScanVariables
- extra = 0
- fields = ('variable_name', 'veocabulary_name', 'units', 'presented_name')
- get_model_objects(request, action=None, klass=None)
Get objects for the given user and action.
- has_add_permission(request, obj=None)
Check the add permission.
- has_change_permission(request, obj=None)
Check the change permission.
- has_delete_permission(request, obj=None)
Check the delete permission.
- has_module_permission(request)
Check the module permissions.
- has_permission(request, obj, action)
Check the permissions.
- has_view_permission(request, obj=None)
Check the view permission.
- list_display = ['variable_name', 'veocabulary_name', 'units', 'presented_name']
- property media
- model
alias of
EnhancedDatasetScanVariables
Miscellaneous:DoesNotExist
MultipleObjectsReturned
Model Fields:
enhanced_catalog_datascan
The enhancedCatalog that holds this entry.
enhanceddatasetscansubs_ptr
Accessor to the related object on the forward side of a one-to-one relation.
presented_name
presented name e.g. Geopotential height, gpm.
units
units e.g. gp m.
variable_name
variable name e.g. Z_sfc.
veocabulary_name
veocabulary name e.g. geopotential_height.
Attributes:
enhanced_catalog_datascan_id
enhanceddatasetscansubs_ptr_id
relative_path
The
location
relative to the catalog root location.
- class tds_control.admin.NetCDFFileInline(parent_model, admin_site)
Bases:
StackedInline
Inline for editing FAQs in the category admin.
Attributes:
Methods:
get_model_objects
(request[, action, klass])Get the model objects.
has_add_permission
(request[, obj])Check the add permission.
has_change_permission
(request[, obj])Check the change permission.
has_delete_permission
(request[, obj])Check the delete permission.
has_module_permission
(request)Check the module permission.
has_permission
(request, obj, action)Check the permission.
has_view_permission
(request[, obj])Check the view permission.
Models:
alias of
NetCDFFile
- extra = 0
- get_model_objects(request, action=None, klass=None)
Get the model objects.
- has_add_permission(request, obj=None)
Check the add permission.
- has_change_permission(request, obj=None)
Check the change permission.
- has_delete_permission(request, obj=None)
Check the delete permission.
- has_module_permission(request)
Check the module permission.
- has_permission(request, obj, action)
Check the permission.
- has_view_permission(request, obj=None)
Check the view permission.
- property media
- model
alias of
NetCDFFile
Miscellaneous:DoesNotExist
MultipleObjectsReturned
Model Fields:
aggregation
Aggregation that uses this netcdf file
id
A wrapper for a deferred-loading field.
Attributes:
objects
- class tds_control.admin.NetCDFScanInline(parent_model, admin_site)
Bases:
StackedInline
Inline for editing FAQs in the category admin.
Attributes:
Methods:
get_model_objects
(request[, action, klass])Get the model objects.
has_add_permission
(request[, obj])Check the add permission.
has_change_permission
(request[, obj])Check the change permission.
has_delete_permission
(request[, obj])Check the delete permission.
has_module_permission
(request)Check the module permission.
has_permission
(request, obj, action)Check the permission.
has_view_permission
(request[, obj])Check the view permission.
Models:
alias of
NetCDFScan
- extra = 0
- get_model_objects(request, action=None, klass=None)
Get the model objects.
- has_add_permission(request, obj=None)
Check the add permission.
- has_change_permission(request, obj=None)
Check the change permission.
- has_delete_permission(request, obj=None)
Check the delete permission.
- has_module_permission(request)
Check the module permission.
- has_permission(request, obj, action)
Check the permission.
- has_view_permission(request, obj=None)
Check the view permission.
- property media
- model
alias of
NetCDFScan
Miscellaneous:DoesNotExist
MultipleObjectsReturned
Model Fields:
aggregation
Aggregation that uses this netcdf file
id
A wrapper for a deferred-loading field.
regexp
The regular expression to use for finding files.
subdirs
Scan sub directories above the specified location
Attributes:
objects
relative_path
The
location
relative to the catalog root location.
- class tds_control.admin.PublisherAdmin(model, admin_site)
Bases:
GuardedModelAdmin
Admin for the Publisher model.
Attributes:
- property media
- class tds_control.admin.SimpleDatasetAdmin(model, admin_site)
Bases:
GuardedModelAdmin
Admin for a simple dataset.
Methods:
get_form
(request[, obj])Restricting the form according to Guardian setting.
get_model_objects
(request[, action, klass])Get the model objects.
get_model_objects_catalog
(request[, action, ...])Get the model objects in catalogs.
get_queryset
(request)Get the queryset.
has_add_permission
(request[, obj])Check the add permission.
has_change_permission
(request[, obj])Check the change permission.
has_delete_permission
(request[, obj])Check the delete permission.
has_module_permission
(request)check if the user has permission to access the module.
has_permission
(request, obj, action)Check the permission.
has_view_permission
(request[, obj])Check the view permission.
Attributes:
- get_form(request, obj=<class 'tds_control.models.TDSCatalog'>, **kwargs)
Restricting the form according to Guardian setting.
- get_model_objects(request, action=None, klass=None)
Get the model objects.
- get_model_objects_catalog(request, action=None, klass=None)
Get the model objects in catalogs.
- get_queryset(request)
Get the queryset.
- has_add_permission(request, obj=None)
Check the add permission.
- has_change_permission(request, obj=None)
Check the change permission.
- has_delete_permission(request, obj=None)
Check the delete permission.
- has_module_permission(request)
check if the user has permission to access the module.
- has_permission(request, obj, action)
Check the permission.
- has_view_permission(request, obj=None)
Check the view permission.
- list_display = ['name', 'id', 'catalog', 'location']
- list_filter = ['catalog', 'data_type', 'catalog__tdsserver']
- property media
- readonly_fields = ('xml',)
- search_fields = ['name', 'catalog__name', 'catalog__tdsserver__name', 'location', 'id']
- class tds_control.admin.TDSCatalogAdmin(model, admin_site)
Bases:
GuardedModelAdmin
Admin for the TDSCatalog model.
Methods:
enhanced_catalog
(obj)Get the enhanced catalog.
get_model_objects_user
(request[, action, klass])Get the objects for the user.
get_queryset
(request)Get the queryset for the user.
has_add_permission
(request[, obj])Check if the user has add permissions.
has_change_permission
(request[, obj])Check if the user has change permissions.
has_delete_permission
(request[, obj])Check if the user has delete permissions.
has_module_permission
(request)Check if the user has module permissions.
has_permission
(request, obj, action)Check if the user has permissions.
has_view_permission
(request[, obj])Check if the user has view permissions.
number_of_entries
(obj)Get the number of dataset entries.
Attributes:
- enhanced_catalog(obj)
Get the enhanced catalog.
- fields = ('name', 'tds4', 'resolver', ('odap', 'dap4', 'http', 'wcs', 'wms', 'ncssGrid', 'ncssPoint', 'cdmremote', 'iso', 'ncml', 'uddc'))
- get_model_objects_user(request, action=None, klass=None)
Get the objects for the user.
- get_queryset(request)
Get the queryset for the user.
- has_add_permission(request, obj=None)
Check if the user has add permissions.
- has_change_permission(request, obj=None)
Check if the user has change permissions.
- has_delete_permission(request, obj=None)
Check if the user has delete permissions.
- has_module_permission(request)
Check if the user has module permissions.
- has_permission(request, obj, action)
Check if the user has permissions.
- has_view_permission(request, obj=None)
Check if the user has view permissions.
- inlines = [<class 'tds_control.admin.CatalogRefInline'>]
- list_display = ['name', 'number_of_entries', 'enhanced_catalog']
- property media
- number_of_entries(obj: TDSCatalog) str
Get the number of dataset entries.
- readonly_fields = ('xml',)
- class tds_control.admin.TDSServerAdmin(model, admin_site)
Bases:
ModelAdmin
Admin for the TDSServer model.
Attributes:
Methods:
number_of_catalogs
(obj)Get the catalogs.
- fields = ('name', 'catalogs', ('cors_activation', 'cors_maxAge', 'cors_allowed_methods', 'cors_allowed_headers', 'cors_allowed_origin'), ('netcdf_subset_service_activation', 'netcdfsubsetservice_scour', 'netcdfsubsetservice_maxAge'), ('opendap_activation', 'opendap_ascLimit', 'opendap_binLimit'), ('wcs_activation', 'wcs_allowRemote', 'wcs_scour', 'wcs_maxAge'), ('wms_activation', 'wms_allowRemote', 'wms_max_image_width', 'wms_max_image_height'), ('ncml_allow', 'uddc_allow', 'iso_allow'))
- filter_horizontal = ['catalogs']
- list_display = ['name', 'number_of_catalogs']
- property media
- readonly_fields = ('xml',)
- class tds_control.admin.WMSConfigAdmin(model, admin_site)
Bases:
NestedModelAdmin
Admin for the THREDDS wmsCongig model.
Attributes:
- fields = ('defaults_allowFeatureInfo', 'defaults_Lower_range', 'defaults_Upper_range', 'defaults_colorbar', 'defaults_Color_bands', 'defaults_intervalTime', 'defaults_logScaling')
- inlines = [<class 'tds_control.admin.WMSStandardNameInline'>, <class 'tds_control.admin.WMSOverrideInline'>]
- list_display = ['defaults_allowFeatureInfo', 'defaults_Lower_range', 'defaults_Upper_range', 'defaults_colorbar', 'defaults_Color_bands', 'defaults_intervalTime', 'defaults_logScaling']
- property media
- class tds_control.admin.WMSOverrideInline(*args, **kwargs)
Bases:
NestedStackedInline
Inline for editing WMSOverride in the WMSConfig.
Attributes:
Models:
alias of
WMSOverride
- extra = 0
- fields = (('single_file', 'directory'), 'allow_feature_info', 'lower_range', 'upper_range', 'colorbar', 'color_bands', 'log_scaling', 'interval_time')
- inlines = [<class 'tds_control.admin.WMSVariableInline'>]
- property media
- model
alias of
WMSOverride
Miscellaneous:DoesNotExist
MultipleObjectsReturned
Model Fields:
directory
Direcrtory of model. e.g testAll/*eta_211.nc.
id
A wrapper for a deferred-loading field.
single_file
The location of the files that shall be used
wms
WMSConfig that uses this netcdf file
Methods:
get_colorbar_display
(*[, field])Attributes:
objects
relative_path
The
location
relative to the catalog root location.wmsvariable_set
Accessor to the related objects manager on the reverse side of a many-to-one relation.
- class tds_control.admin.WMSStandardNameInline(*args, **kwargs)
Bases:
NestedStackedInline
Inline for editing WMSStandardName in the WMSConfig.
Attributes:
Models:
alias of
WMSStandardName
- extra = 0
- fields = ('name', 'unit', 'allow_feature_info', 'lower_range', 'upper_range', 'colorbar', 'color_bands', 'log_scaling', 'interval_time')
- property media
- model
alias of
WMSStandardName
Miscellaneous:DoesNotExist
MultipleObjectsReturned
Methods:
get_colorbar_display
(*[, field])Model Fields:
id
A wrapper for a deferred-loading field.
name
Name of variable
unit
Unit of variable
wms
WMSConfig that uses this netcdf file
Attributes:
objects
- class tds_control.admin.WMSVariableInline(*args, **kwargs)
Bases:
NestedStackedInline
Inline for editing WMSVariable in the WMSConfig.
Attributes:
Models:
alias of
WMSVariable
- extra = 0
- fields = ('name', 'allow_feature_info', 'lower_range', 'upper_range', 'colorbar', 'color_bands', 'log_scaling', 'interval_time')
- property media
- model
alias of
WMSVariable
Miscellaneous:DoesNotExist
MultipleObjectsReturned
Model Fields:
category
for connection to WMSOverride in inline feature
id
A wrapper for a deferred-loading field.
name
Name of variable
wms
WMSConfig that uses this netcdf file
Attributes:
category_id
objects
relative_path
The
location
relative to the catalog root location.Methods:
get_colorbar_display
(*[, field])