Skip to content
  • Vangelis Koukis's avatar
    Fix PostgreSQL backend exception for empty IPv4 · f6ff7a6c
    Vangelis Koukis authored
    Fix exception is thrown in logic/backend.py:process_net_status()
    if the NIC configuration notification contains an empty IPv4
    field, and Django uses the PostgreSQL backend.
    
    This only happens with the PostgreSQL backend, because it has a
    specific IPv4 data type and cannot accept the empty string as a
    valid value for such fields.
    
    Also add two unit tests for logic/backend.py:process_net_status().
    f6ff7a6c