@register.inclusion_tag(templatename('<STR_LIT>'))<EOL>def notification_preference(obj_type, profile):
default_alert_value = True<EOL>if not profile:<EOL><INDENT>alerts_on = True<EOL><DEDENT>else:<EOL><INDENT>notifications = profile.get('<STR_LIT>', {})<EOL>alerts_on = notifications.get(obj_type, default_alert_value)<EOL><DEDENT>return dict(alerts_on=alerts_on, obj_type=obj_type)<EOL>
Display two radio buttons for turning notifications on or off.
    The default value is is have alerts_on = True.