#1153: field value is set, after calling new() in parent-child situation
----------------------+-----------------------------------------------------
Reporter: kweinert | Owner: somebody
Type: defect | Status: new
Priority: minor | Milestone: 0.8.3
Component: biz | Version: 0.8.2
Keywords: |
----------------------+-----------------------------------------------------
In a master-detail situation with foreign key constraint
master.key == details.key_ref. master.key is not primary key and hence not
autopopulated.
When I call master.new(), then master.key is set to 0. I was expecting it
to be None, since I did not specify any default value. Test case attached
(test_default).
This happens sometimes to fields that are not under a foreign key
contraint, too; but I am currently not able to make a test case for this.
Kind regards,
Karsten Weinert.
--
Ticket URL: <http://trac.dabodev.com/ticket/1153>
Dabo Trac <http://trac.dabodev.com>
Trac Page for Dabo
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]