More clear enums

This commit is contained in:
Oskar Hahn 2021-01-02 21:30:28 +01:00
parent a3dce30e1d
commit 1c5b4a5c9e

View File

@ -38,7 +38,7 @@
# - on_delete: This fields determines what should happen with the foreign model if # - on_delete: This fields determines what should happen with the foreign model if
# this model gets deleted. Possible values are: # this model gets deleted. Possible values are:
# - SET_NULL (default): delete the id from the foreign key # - SET_NULL (default): delete the id from the foreign key
# - PROTECT: if the foreign key is not empty, throw an error instead of # - PROTECT: if the foreign key is not empty, throw an error instead of
# deleting the object # deleting the object
# - CASCADE: also delete all models in this foreign key # - CASCADE: also delete all models in this foreign key
# Structured fields: # Structured fields:
@ -385,11 +385,11 @@ meeting:
- default_yes - default_yes
- default_no - default_no
agenda_new_items_default_visibility: agenda_new_items_default_visibility:
type: number type: string
enum: enum:
- 1 - common
- 2 - internal
- 3 - hidden
agenda_show_internal_items_on_projector: boolean agenda_show_internal_items_on_projector: boolean
# List of speakers # List of speakers
@ -819,12 +819,12 @@ agenda_item:
comment: string comment: string
closed: boolean closed: boolean
type: type:
type: number type: string
enum: enum:
- 1 - common
- 2 - internal
- 3 - hidden
default: 1 default: common
duration: duration:
type: number type: number
description: Given in seconds description: Given in seconds
@ -1281,13 +1281,13 @@ motion_change_recommendation:
rejected: boolean rejected: boolean
internal: boolean internal: boolean
type: type:
type: number type: string
enum: enum:
- 0 - replacement
- 1 - insertion
- 2 - deletion
- 3 - other
default: 0 default: replacement
other_description: string other_description: string
line_from: line_from:
type: number type: number
@ -1318,20 +1318,20 @@ motion_state:
recommendation_label: string recommendation_label: string
css_class: css_class:
type: string type: string
default: lightblue
enum: enum:
- grey - grey
- red - red
- green - green
- lightblue - lightblue
- yellow - yellow
default: lightblue
restrictions: restrictions:
type: string[] type: string[]
items: items:
enum: enum:
- motions.can_see_internal - motion.can_see_internal
- motions.can_manage_metadata - motion.can_manage_metadata
- motions.can_manage - motion.can_manage
- is_submitter - is_submitter
allow_support: boolean allow_support: boolean
allow_create_poll: boolean allow_create_poll: boolean
@ -1339,12 +1339,12 @@ motion_state:
set_number: boolean set_number: boolean
show_state_extension_field: boolean show_state_extension_field: boolean
merge_amendment_into_final: merge_amendment_into_final:
type: number type: string
default: 0
enum: enum:
- -1 - do_not_merge
- 0 - undefined
- 1 - do_merge
default: undefined
show_recommendation_extension_field: boolean show_recommendation_extension_field: boolean
next_state_ids: next_state_ids:
@ -1454,13 +1454,13 @@ poll:
- YNA - YNA
- N - N
state: state:
type: number type: string
default: 1
enum: enum:
- 1 - created
- 2 - started
- 3 - finished
- 4 - published
default: created
min_votes_amount: min_votes_amount:
type: number type: number
default: 1 default: 1
@ -1602,12 +1602,12 @@ assignment:
minimum: 0 minimum: 0
default: 0 default: 0
phase: phase:
type: number type: string
enum: enum:
- 0 - search
- 1 - voting
- 2 - finished
default: 0 default: search
default_poll_description: string default_poll_description: string
number_poll_candidates: boolean number_poll_candidates: boolean