Sapan Bhatia | bfb233a | 2018-02-09 14:53:09 -0800 | [diff] [blame] | 1 | {% set required_options = ['name','verbose_name','app_label'] %} |
2 | |||||
3 | {% for m in proto.messages %} | ||||
4 | {% for o in required_options %} | ||||
5 | {% if not options[o] and not m.options[o] %} | ||||
6 | 504 Required option {{ o }} is missing from model {{ m.name }} | ||||
7 | {% endif %} | ||||
8 | |||||
9 | {% set required_field_options = ['tosca_key'] %} | ||||
10 | |||||
11 | {% endfor %} | ||||
12 | {% endfor %} |