Region Condition
Region Condition Actions
- class integreat_cms.cms.views.region_condition.region_condition_actions.RegionConditionResource(**kwargs)[source]
Bases:
ModelResource
A resources class that connects to the django-import-export library. It represents the to-be exported status of all regions.
- get_instance(*args: Any, **kwargs: Any) Any [source]
See
import_export.resources.Resource.get_instance()
- Parameters:
args (Any)
kwargs (Any)
- Return type:
Any
- import_data(*args: Any, **kwargs: Any) Any [source]
See
import_export.resources.Resource.import_data()
- Parameters:
args (Any)
kwargs (Any)
- Return type:
Any
- import_row(*args: Any, **kwargs: Any) Any [source]
See
import_export.resources.Resource.import_row()
- Parameters:
args (Any)
kwargs (Any)
- Return type:
Any
- save_instance(*args: Any, **kwargs: Any) Any [source]
See
import_export.resources.Resource.save_instance()
- Parameters:
args (Any)
kwargs (Any)
- Return type:
Any
- integreat_cms.cms.views.region_condition.region_condition_actions.export_region_conditions(request: HttpRequest, file_format: str) HttpResponse [source]
Creates a data export summarizing the condition of all regions
- Parameters:
request (HttpRequest) – The current request
file_format (str) – The file format to export
- Returns:
A response containing the export data
- Return type:
HttpResponse
Region Condition View
- class integreat_cms.cms.views.region_condition.region_condition_view.RegionConditionView(**kwargs)[source]
Bases:
TemplateView
View to analyze the condition of all regions
- template_name = 'region_condition/region_condition.html'[source]
The template to render (see
TemplateResponseMixin
)