summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zielinski <tomasz.zielinski@pyconsultant.eu>2011-11-09 21:07:38 +0100
committerTomasz Zielinski <tomasz.zielinski@pyconsultant.eu>2011-11-09 21:07:38 +0100
commitbe2267211fcfdb28b769552050225bf60343bf65 (patch)
treebf5fa48e371ce646bf12d9d980aa1c62e0925c74
parent30d8e5e3e7b4bdb7e6ef57ae059c0551ba37544e (diff)
downloadaskbot-be2267211fcfdb28b769552050225bf60343bf65.tar.gz
askbot-be2267211fcfdb28b769552050225bf60343bf65.tar.bz2
askbot-be2267211fcfdb28b769552050225bf60343bf65.zip
Added minor TODO comment in PostRevisionManager
-rw-r--r--askbot/models/post.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/askbot/models/post.py b/askbot/models/post.py
index d5c0c6df..343ffd87 100644
--- a/askbot/models/post.py
+++ b/askbot/models/post.py
@@ -8,6 +8,9 @@ from askbot.utils.html import sanitize_html
# pass
class PostRevisionManager(models.Manager):
+ # TODO: Make sure this manager /with the "blocked" .create() method/ is used also as a `related` manager:
+ # - https://docs.djangoproject.com/en/1.3/topics/db/managers/#controlling-automatic-manager-types
+ # - use_for_related_fields
def create(self, *kargs, **kwargs):
raise NotImplementedError # Prevent accidental creation of PostRevision instance without `revision_type` set