flask_velox.admin.mixins.template

Module provides mixin classes for integrating Flask-Velox Views with Flask-Admin.

class flask_velox.admin.mixins.template.AdminTemplateMixin

Bases: flask_velox.mixins.template.TemplateMixin

Overrides default TemplateMixin methods to provide admin rendering functionality.

Note

get(admin, *args, **kwargs)

Handles HTTP GET requests to View. Also sets self._admin which contains the passed admin view.

Parameters:admin (obj) – The current admin view
get_admin()

Returns the current admin system to render templates within the Flask-Admin system.

Returns:Current admin view
Return type:obj
render()

Renders template within the Flask-Admin system.

http://thisissoon.com

Related Topics

This Page