docs: def get_form_context(self, obj):
          """Return a dict: form instance, action button, submit url...
  
          Used by macro m_attachment_form(entity)
          """
          return {
              "url": url_for("attachments.create", entity_id=obj.id),
              "form": self.Form(),
              "buttons": [UPLOAD_BUTTON],
          }