Ignore:
Timestamp:
11 Aug 2020, 12:42:09 (4 years ago)
Author:
Henrik Bettermann
Message:

LGA can be None.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/export.py

    r16195 r16197  
    8484
    8585    def mangle_value(self, value, name, context=None):
    86         if name == 'lg_state':
     86        if name == 'lg_state' and context.lga:
    8787            value = context.lga.split('_')[0]
    88         if name == 'lg_area':
     88        if name == 'lg_area' and context.lga:
    8989            value = '-'.join(context.lga.split('_')[1:])
    9090        return super(
Note: See TracChangeset for help on using the changeset viewer.