Skip to content
Snippets Groups Projects
Commit 38744fe9 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Comment to explain space before Required group name.

parent 2b1e7265
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,7 @@ class CustomFormFieldsBlock(StreamBlock):
single_blocks = []
def __init__(self, *args, **kwargs):
# The space before " Required" is to make the group sort first. Ugly but easy, and it works.
child_blocks = [(block.name, block(group=_(' Required'))) for block in self.required_blocks]
child_blocks += [(block.name, block(group=_('Custom'))) for block in self.single_blocks]
self.required_block_names = [block.name for block in self.required_blocks]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment