]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/actions/node.py
Moves the myopenid logo to a big button, and the aol logo to a small button in the...
[osqa.git] / forum / actions / node.py
index dbbb6589107e1a11566da5f25a6c58f3e7cae2da..50e4ef13060ff5eb9064537d2a1c679c6f952dae 100644 (file)
@@ -19,7 +19,11 @@ class AskAction(NodeEditAction):
     verb = _("asked")\r
 \r
     def process_data(self, **data):\r
-        question = Question(author=self.user, **self.create_revision_data(True, **data))\r
+        processed_data = self.create_revision_data(True, **data)\r
+        if 'added_at' in data:\r
+            processed_data['added_at'] = data['added_at']\r
+\r
+        question = Question(author=self.user, **processed_data)\r
         question.save()\r
         self.node = question\r
 \r