Bo
Bo
The `submit` event to the `form` is supposed to trigger validation of `required` of ` `, as what would happen if I click the `submit` button. I do not know...
Ok, this is becoming confusing. 1. If I remove the `hx-post` part from the ``, ` _="on click send submit to #myform"` does send the `submit` event to `form` but...
@1cg The whole idea of bigskysoftware/htmx#396, bigskysoftware/htmx#398 and this ticket is that the regular form POST event can trigger automatic or manual form validation (built-in HTML constraints or JS library...
ok, `validate` is set to `false` in `processInputValue`, let me check what is going on.
https://github.com/bigskysoftware/htmx/blob/a66458768613ac8193ccad1570ac629a9974d927/src/htmx.js#L1664 Does this line mean `validate` is set in the case of ``` ``` but not ``` ```
Changing that line to ```javascript var validate = (matches(elt, 'form') || closest(elt, 'form')) && elt.noValidate !== true; ``` will perform validation, but `hx-post` just stopped, no error message even on...
OK, the form validation problem is partially solved (at least will be discussed in bigskysoftware/htmx#400, but the problem for "act upon the result of an event" remains. I have updated...
This is standard django technique. Essentially speaking you only need to create files such as `templates/forum/forum_detail.html`. Whatever you define will override corresponding files from `django-machina`.
``` def get_absolute_url(self): return reverse( "forum_conversation:topic", kwargs={ "slug": self.slug, 'pk': self.pk, 'forum_slug': self.forum.slug, 'forum_pk': self.forum.pk }) ``` should work for `Topic`.
https://github.com/ellmetha/django-machina/commit/905f23a1f2a4eb64b282191778522fd83f9ca7d7 might not apply cleanly but all needed changes appear to be there. I really do not understand why `get_absolute_url()` was removed because it provides a natural Django way to...