Fix sponsor key field extraction
When extracting key field there is no sponsor or user object, instead
only their link names are known.
--- a/app/soc/logic/models/host.py Wed Nov 05 23:32:59 2008 +0000
+++ b/app/soc/logic/models/host.py Wed Nov 05 23:33:22 2008 +0000
@@ -50,7 +50,7 @@
"""See base.Logic.getKeyValuesFromFields.
"""
- return [fields['sponsor'].link_name, fields['user'].link_name]
+ return [fields['sponsor_ln'], fields['user_ln']]
def getKeyFieldNames(self):
"""See base.Logic.getKeyFieldNames