summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zielinski <tomasz.zielinski@pyconsultant.eu>2012-01-06 23:21:34 +0100
committerTomasz Zielinski <tomasz.zielinski@pyconsultant.eu>2012-01-06 23:21:34 +0100
commitb81c38d36a422322cfcf34a67f9d34b6e2aa3cd5 (patch)
tree355cfa0ec3fb3438e32760507c28093655f57bf6
parent51b6be4b04ec97d464c41d81050dde48ac488d20 (diff)
downloadaskbot-b81c38d36a422322cfcf34a67f9d34b6e2aa3cd5.tar.gz
askbot-b81c38d36a422322cfcf34a67f9d34b6e2aa3cd5.tar.bz2
askbot-b81c38d36a422322cfcf34a67f9d34b6e2aa3cd5.zip
Bugfixes
-rw-r--r--askbot/migrations/0090_postize_q_a_c.py6
-rw-r--r--askbot/models/post.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/askbot/migrations/0090_postize_q_a_c.py b/askbot/migrations/0090_postize_q_a_c.py
index 91fdf02c..f85cbf09 100644
--- a/askbot/migrations/0090_postize_q_a_c.py
+++ b/askbot/migrations/0090_postize_q_a_c.py
@@ -187,9 +187,9 @@ class Migration(DataMigration):
else:
autoincrement = -1
- print TERM_RED_BOLD, "You are using `%s` database backend which is not officially supported. " \
- "Therefore after migrations are applied you should make sure that autoincrement/sequence value for " \
- "table `askbot_post` is set to %d" % (post_id + 1), TERM_RESET
+ print TERM_RED_BOLD, ("You are using `%s` database backend which is not officially supported. "
+ "Therefore after migrations are applied you should make sure that autoincrement/sequence value for "
+ "table `askbot_post` is set to %d") % (db.backend_name, post_id + 1), TERM_RESET
if autoincrement != -1:
if autoincrement != (post_id + 1):
diff --git a/askbot/models/post.py b/askbot/models/post.py
index ed98a26d..531989ab 100644
--- a/askbot/models/post.py
+++ b/askbot/models/post.py
@@ -696,7 +696,7 @@ class Post(models.Model):
def save(self, *args, **kwargs):
if self.is_answer() and self.is_anonymous:
raise ValueError('Answer cannot be anonymous!')
- super(Post, self).save(self, *args, **kwargs)
+ super(Post, self).save(*args, **kwargs)
if self.is_answer() and 'postgres' in settings.DATABASE_ENGINE:
#hit the database to trigger update of full text search vector
self.thread._question_post().save()