I am trying to customize a settings page so it has a button that I will assign to a certain action. (Let's assume for now I just want to log something into the console).
Ideally it would be of something like this:
@register_setting
class ActionTriggeringSetting(BaseSetting):
button = models.ButtonField(
action=myLoggingFunc,
help_text='Click here to log "Hello World" to the console'
)
I tried looking into the site settings but found nothing really helpful there.
Does anybody know if something of the sort exists?
Thank you