Ignore:
Timestamp:
18 Jan 2015, 08:07:54 (10 years ago)
Author:
Henrik Bettermann
Message:

Ensure that also orphaned contracts types can be removed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/export.py

    r12337 r12483  
    5353    for customer in customers:
    5454        for contract in customer.get('contracts', {}).values():
    55             if contract.class_name == class_name:
     55            if getattr(contract, 'class_name', None) == class_name:
    5656                contracts.append(contract)
    5757    return contracts
Note: See TracChangeset for help on using the changeset viewer.