wuttafarm.web.views.farmos.master¶
Base class for farmOS master views
- class wuttafarm.web.views.farmos.master.FarmOSMasterView(request, context=None)[source]¶
Base class for farmOS master views
- get_template_context(context)[source]¶
This method should return the “complete” context for rendering the current view template.
Default logic for this method returns the given context unchanged.
You may wish to override to pass extra context to the view template. Check
viewingand similar, orrequest.current_route_nameetc. in order to add extra context only for certain view templates.- Params:
context: The context dict we have so far, auto-provided by the master view logic.
- Returns:
Final context dict for the template.