File tree 2 files changed +16
-1
lines changed
templates/v2/ngo-account/my-organization
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -287,6 +287,9 @@ def mandatory_fields(self):
287
287
288
288
return [field .field for field in field_names ]
289
289
290
+ def missing_mandatory_fields (self ):
291
+ return [field for field in self .mandatory_fields if not getattr (self , field .name )]
292
+
290
293
@property
291
294
def mandatory_fields_names (self ):
292
295
return [field .verbose_name for field in self .mandatory_fields ]
@@ -299,6 +302,18 @@ def mandatory_fields_names_lower(self):
299
302
def mandatory_fields_names_capitalize (self ):
300
303
return [field .capitalize () for field in self .mandatory_fields_names ]
301
304
305
+ @property
306
+ def missing_mandatory_fields_names (self ):
307
+ return [field .verbose_name for field in self .missing_mandatory_fields ()]
308
+
309
+ @property
310
+ def missing_mandatory_fields_names_lower (self ):
311
+ return [field .lower () for field in self .missing_mandatory_fields_names ]
312
+
313
+ @property
314
+ def missing_mandatory_fields_names_capitalize (self ):
315
+ return [field .capitalize () for field in self .missing_mandatory_fields_names ]
316
+
302
317
def mandatory_fields_values (self ):
303
318
return [getattr (self , field .name ) for field in self .mandatory_fields ]
304
319
Original file line number Diff line number Diff line change 13
13
</ p >
14
14
{% endblocktranslate %}
15
15
16
- {% include "components/info-banner.html" with style="error" banner_message=banner_message banner_list=ngo.mandatory_fields_names_capitalize %}
16
+ {% include "components/info-banner.html" with style="error" banner_message=banner_message banner_list=ngo.missing_mandatory_fields_names_capitalize %}
17
17
</ div >
18
18
{% endif %}
19
19
You can’t perform that action at this time.
0 commit comments