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)

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

Initialize page form

Parameters:

**kwargs (Any) – The supplied keyword arguments

Return type:

None

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

save(commit: bool = True) Any[source]

This method extends the default save()-method of the base ModelForm to provide debug logging

Parameters:

commit (bool) – Whether or not the changes should be written to the database

Returns:

The saved object returned by The save() method

Return type:

Any

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.