hasattr actually calls __getattr__, so check for existence of attribute with __dict__ instead, to prevent automatically retrieving the attribute from the DB