diff options
author | hrcerqueira <hrcerqueira@gmail.com> | 2010-02-22 14:34:10 +0000 |
---|---|---|
committer | hrcerqueira <hrcerqueira@gmail.com> | 2010-02-22 14:34:10 +0000 |
commit | c98f611472b65e8be5943fb6e9f134c21d9a0665 (patch) | |
tree | 107e6d3b0f4f236d794e194e7d9074bbff34aadf /pgfulltext/management.py | |
parent | 2ea80d9c8d6c9e6ace51c59ebfc194b59bb0480a (diff) | |
download | askbot-c98f611472b65e8be5943fb6e9f134c21d9a0665.tar.gz askbot-c98f611472b65e8be5943fb6e9f134c21d9a0665.tar.bz2 askbot-c98f611472b65e8be5943fb6e9f134c21d9a0665.zip |
"Reversed" some m2m relations with the user model.
Fixed and improved most of modules functionality.
Definitevly moved books to a separate module.
Fixed some missing imports in views.
Adapted some of the interface changes Rick did on robofaqs to osqa.
Diffstat (limited to 'pgfulltext/management.py')
-rw-r--r-- | pgfulltext/management.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/pgfulltext/management.py b/pgfulltext/management.py deleted file mode 100644 index 46f51edc..00000000 --- a/pgfulltext/management.py +++ /dev/null @@ -1,23 +0,0 @@ -import os - -from django.db import connection, transaction -from django.conf import settings - -import forum.models - -if settings.USE_PG_FTS: - from django.db.models.signals import post_syncdb - - def setup_pgfulltext(sender, **kwargs): - if sender == forum.models_: - install_pg_fts() - - post_syncdb.connect(setup_pgfulltext) - -def install_pg_fts(): - f = open(os.path.join(os.path.dirname(__file__), '../sql_scripts/pg_fts_install.sql'), 'r') - cursor = connection.cursor() - cursor.execute(f.read()) - transaction.commit_unless_managed() - f.close() -
\ No newline at end of file |