External Calendars

This package contains all views related to external calendars

External Calendar Actions

integreat_cms.cms.views.external_calendars.external_calendar_actions.delete_external_calendar(request: HttpRequest, calendar_id: int, region_slug: str) HttpResponseRedirect[source]

Delete external calendar

Parameters:
  • request (HttpRequest) – The current request

  • calendar_id (int) – The id of the calendar that should be deleted

  • region_slug (str) – The slug of the current region

Returns:

A redirection to the ExternalCalendarList

Return type:

HttpResponseRedirect

External Calendar Form View

class integreat_cms.cms.views.external_calendars.external_calendar_form_view.ExternalCalendarFormView(**kwargs)[source]

Bases: TemplateView

Form view for new external calendars in a region.

get(request: HttpRequest, *args: Any, **kwargs: Any) HttpResponse[source]

Render ExternalCalendarForm

Parameters:
  • request (HttpRequest) – The current request

  • *args (Any) – The supplied arguments

  • **kwargs (Any) – The supplied keyword arguments

Returns:

The rendered template response

Return type:

HttpResponse

post(request: HttpRequest, *args: Any, **kwargs: Any) HttpResponse[source]

Submit ExternalCalendarForm and save ExternalCalendar object

Parameters:
  • request (HttpRequest) – The current request

  • *args (Any) – The supplied arguments

  • **kwargs (Any) – The supplied keyword arguments

Returns:

The rendered template response

Return type:

HttpResponse

External Calendar List View

class integreat_cms.cms.views.external_calendars.external_calendar_list_view.ExternalCalendarList(**kwargs)[source]

Bases: TemplateView

View for external calendars in regions.

get_context_data(**kwargs: Any) dict[str, Any][source]

Get external calendar list context data

Returns:

The context dictionary

Parameters:

kwargs (Any)

Return type:

dict[str, Any]