recordtransfer.widgets - Custom HTML widgets

class recordtransfer.widgets.CustomCountrySelectWidget(*args: Any, **kwargs: Any)

Bases: CountrySelectWidget

Custom Country Select Widget that wraps the rendered field in a container div, so that both the select field and the flag show side by side.

FLAG_LAYOUT = '{widget}<img class="country-select-flag" id="{flag_id}" src="{country.flag}" alt="" aria-hidden="true">'
render(name: str, value: object, attrs: dict | None = None, renderer: object | None = None) SafeString

Render the widget with a container div around it.

property media