Skip to content

Commit

Permalink
Merge pull request #490 from Xpirix/server_plugins_validator
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix authored Nov 22, 2024
2 parents 106ef9d + 787ebb6 commit 1fde67f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion qgis-app/plugins/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,16 @@ class Plugin(models.Model):
deprecated = models.BooleanField(_("Deprecated"), default=False, db_index=True)

# True if the plugin has a server interface
server = models.BooleanField(_("Server"), default=False, db_index=True)
server = models.BooleanField(
_("Server"),
default=False,
db_index=True,
help_text=_(
"A server plugin is a plugin which can run on QGIS Server,"
" by having a entrypoint <b>serverClassFactory</b>, see the"
" <a href=\"https://docs.qgis.org/latest/en/docs/pyqgis_developer_cookbook/server.html#init-py\" target=\"_blank\">documentation</a>."
),
)

# Managers
objects = models.Manager()
Expand Down
2 changes: 1 addition & 1 deletion qgis-app/plugins/templates/plugins/form_snippet.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% endif %}
{{ field }}
{% endif %}
<div class="help">{{ field.help_text }}</div>
<div class="help">{{ field.help_text|safe }}</div>
</div>
{% endfor %}
</fieldset>

0 comments on commit 1fde67f

Please sign in to comment.