POIs

Forms for creating and modifying POI and POI translation objects

POI Form

class integreat_cms.cms.forms.pois.poi_form.POIForm(**kwargs: Any)[source]

Bases: CustomModelForm

Form for creating and modifying POI objects

Form fields:

Parameters:

kwargs (Any) –

clean() dict[str, Any][source]

Validate form fields which depend on each other, see django.forms.Form.clean()

Returns:

The cleaned form data

Return type:

dict[str, Any]

clean_opening_hours() list[dict[str, Any]][source]

Validate the opening hours field (see Overriding the clean() method).

Returns:

The valid opening hours

Return type:

list[dict[str, Any]]

property media[source]

Return all media required to render the widgets on this form.

nominatim_distance_delta = 0[source]

The distance in km between the manually entered coordinates and the coordinates returned from Nominatim

POI Translation Form

class integreat_cms.cms.forms.pois.poi_translation_form.POITranslationForm(**kwargs: Any)[source]

Bases: MachineTranslationForm

Form for creating and modifying POI translation objects

Form fields:

Parameters:

kwargs (Any) –

__init__(**kwargs: Any) None[source]

Initialize POI translation form

Parameters:

**kwargs (Any) – The supplied keyword arguments

Return type:

None

property media[source]

Return all media required to render the widgets on this form.