Hello guys,

I created a custom content type (CustomPage) and added a page_processor for 
it as follows:

class CustomPage(Page):
    custom_property = models.CharField('Custom Property', max_length=100)

----
@processor_for(CustomPage)
def my_method(request,page)
    property = page.custom_property
    ...

The page processor works, but it is passing a Page's instance to my_method 
instead of the CustomPage instance (subclass). Therefore, it throws a 
KeyError when trying to get page.custom_property. Do you know how can I 
solve this to use my CustomPage on the page processor?

Thank you

-- 
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/d/optout.

Reply via email to