id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 11541,F() expressions don't allow assignment of Foreign Key values on instances,Russell Keith-Magee,Aman Pandey,"Lines 93-102 of the expressions model test define the following test case: {{{ # F expressions cannot be used to update attributes which are foreign keys, or # attributes which involve joins. >>> test_gmbh.point_of_contact = None >>> test_gmbh.save() >>> test_gmbh.point_of_contact is None True >>> test_gmbh.point_of_contact = F('ceo') Traceback (most recent call last): ... ValueError: Cannot assign """": ""Company.point_of_contact"" must be a ""Employee"" instance. }}} There's no reason this sort of assignment shouldn't be possible - it just requires the appropriate handling on the related field.",Bug,assigned,"Database layer (models, ORM)",1.1-beta,Normal,,,Abhijeet Viswa,Accepted,0,0,0,0,0,0