def render(self, context, instance, placeholder):
    request = context['request']
    if ((request.method == 'POST') and (settings.FORM_NAME in request.POST.keys())):
        form = MailingListSubscriptionForm(data=request.POST)
        if form.is_valid():
            form.save(instance.mailing_list)
            form.saved = True
    else:
        form = MailingListSubscriptionForm()
    context.update({'object': instance, 'form': form, 'form_name': settings.FORM_NAME, 'placeholder': placeholder})
    return context
def render(self, context, instance, placeholder):
    request = context['request']
    if ((request.method == 'POST') and (settings.FORM_NAME in request.POST.keys())):
        form = MailingListSubscriptionForm(data=request.POST)
        if form.is_valid():
            form.save(instance.mailing_list)
            form.saved = True
    else:
        form = MailingListSubscriptionForm()
    context.update({'object': instance, 'form': form, 'form_name': settings.FORM_NAME, 'placeholder': placeholder})
    return context