From 9497cea4062df7765e5a21b5c06687f5cbbc2d34 Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sat, 22 Apr 2017 13:49:22 +0200 Subject: [PATCH] custom fields --- docs/DEVELOPMENT.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index b4bed1c..b41b854 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -169,6 +169,17 @@ To generate the hash, use: print utils.hash\_password('MyVerySecretPassword') +custom fields +------------- + +On the list of tickets of an event, you can display one or more custom columns. + +To do so, introduce into the _settings_ collection an entry like this: + {"setting" : "ticket_custom_field", "label" : "Afternoon", "type" : "boolean", "key" : "afternoon_attended", "in_event_details" : true} + +If _type_ is not 'boolean', it's assumed to be a string. + + Code layout ===========