From 0039fa4c965b9d4245103a8ed631adeaad590dcb Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Fri, 5 Jun 2015 22:43:17 +0100 Subject: [PATCH] Updated StreamField blocks API (markdown) --- StreamField-blocks-API.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/StreamField-blocks-API.md b/StreamField-blocks-API.md index 064f295..d46624a 100644 --- a/StreamField-blocks-API.md +++ b/StreamField-blocks-API.md @@ -172,3 +172,7 @@ The reverse of `get_prep_value`; convert the JSON-serialisable data back to the ### render(self, value) Return a text rendering of 'value', suitable for display on templates. This may include HTML markup, in which case the `render` method is responsible for returning the result as a SafeString (having performed the necessary escaping to prevent HTML injection). + +### id_for_label(self, prefix) + +Return the ID to use as the `for` attribute of `