From 2b2867af4f32b66237ee21fdfe83ce15ac3a1960 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Thu, 12 Feb 2015 14:13:05 +0000 Subject: [PATCH] Updated StreamField blocks API (markdown) --- StreamField-blocks-API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StreamField-blocks-API.md b/StreamField-blocks-API.md index 38ab5bc..a660309 100644 --- a/StreamField-blocks-API.md +++ b/StreamField-blocks-API.md @@ -26,7 +26,7 @@ The constructor can take whatever parameters it likes, but the base `Block` clas Subclasses of `Block` must implement the following methods: -### render_form(self, value, prefix='', error=None) +### render_form(self, value, prefix='', errors=None) Return the HTML for an instance of this block with the content given by 'value'. All element IDs and names must be prefixed by the given prefix. (The calling code will ensure that this prefix is unique for each individual block instance that appears in the form, in the case of repeatable blocks.) @@ -63,7 +63,7 @@ For example, `render_form(['peas', 'carrots', 'toothpaste'], 'matts-shopping-lis Any associated Javascript will typically not be rendered at this point (although for simple scripts that don't involve nesting blocks, an inline `