app/soc/views/models/host.py
changeset 968 8177ddc9ea35
parent 963 24c0a9da6360
child 969 b12de918d660
--- a/app/soc/views/models/host.py	Sat Jan 24 20:44:32 2009 +0000
+++ b/app/soc/views/models/host.py	Sat Jan 24 20:51:51 2009 +0000
@@ -132,9 +132,9 @@
   def _editPost(self, request, entity, fields):
     """See base.View._editPost().
     """
-
-    fields['user'] = fields['link_id']
-    fields['link_id'] = fields['link_id'].link_id
+    if not entity
+      fields['user'] = fields['link_id']
+      fields['link_id'] = fields['link_id'].link_id
 
     super(View, self)._editPost(request, entity, fields)