« Previous | Next » 

Revision 03805fc8

ID03805fc8749dc24347bf9f4a434181f22766c84b

Added by Vangelis Koukis over 12 years ago

Fix PostgreSQL backend exception for empty IPv4

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().

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences