

def label_from_instance(self, obj):
    if self.department_prefix:
        return ('%s %s' % (obj.department.name, self.local_name))
    else:
        return obj.local_name

dataset/ETHPy150Open gunnery/gunnery/gunnery/account/forms.py UserGroupsField.label_from_instance/VarMisuse@30/42 `obj`->`self`