Hello, I've been trying to use the lookup option in a metadata field, and was able to display a dropdown with a list of options by just adding strings separated by comma, like this:
'ARCOM', 'MAE', 'MERNMR', 'MINISTERIO DE MINERÍA', 'SENAGUA'
This was a simple use case to display different government branches in the drop down field. But what if my list is 100 times bigger? Do I really need to add the options as a single line of strings?
Also, would it be possible to order the list in alphabetical order? I've tried different methods explained in the Django docs but have not been successful so far.
This will be possible with the next version of Mayan. The next version includes a "split" filter and a special tag named "method" that allows calling Python method on objects.
Thanks for all you do for us users. In your response including the split function. Is it possible to have the source of the list be the content of a metadata field. What I would like to do is have our users pick from the existing list of values or add a new one if it is not in the list. Is this possible?