I've written a context processor, as stated in the docs, so, I have
#context_processors.py
from mezzanine.pages.page_processors import processor_for
@processor_for('myform')
def another_form_processor(request, page):
return {"form": {}}
and added "context_processors.another_form_processor"
to TEMPLATE_CONTEXT_PROCESSORS on my settings.py.
But when I try to use it, I get a "TypeError: another_form_processor()
takes exactly 2 arguments (1 given)" error, that only goes away if I remove
the page argument from the processor.
Anu suggestions? Did I configure something wrong?
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.