recordtransfer.widgets - Custom HTML widgets

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

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.

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