'Returns dictionary of form classes for the sidebar. If no form class is
specified, puts None in dictionary. Keys in the dictionary are used
to identify which form is being saved.'

def get_sidebar_form_classes(self):

    form_classes = {}
    for (cnt, plugin) in enumerate(self.sidebar_plugins):
        form_classes[(u'form%d' % cnt)] = (plugin, plugin.sidebar.get(u'form_class', None))
    return form_classes
