aboutsummaryrefslogtreecommitdiffstats
path: root/97suifangqa/apps/sciblog/managers.py
diff options
context:
space:
mode:
Diffstat (limited to '97suifangqa/apps/sciblog/managers.py')
-rw-r--r--97suifangqa/apps/sciblog/managers.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/97suifangqa/apps/sciblog/managers.py b/97suifangqa/apps/sciblog/managers.py
index 8ec0773..9b0e01a 100644
--- a/97suifangqa/apps/sciblog/managers.py
+++ b/97suifangqa/apps/sciblog/managers.py
@@ -9,14 +9,18 @@ class AnnotationManager(models.Manager):
def paracomments(self):
u'''
获取段落注释
+
+ PARAGRAPH: 0
'''
- return self.filter(type = self.PARAGRAPH)
+ return self.filter(type = 0)
def propernouns(self):
u'''
获取专有名词
+
+ PROPER_NOUN: 1
'''
- return self.filter(type = self.PROPER_NOUN)
+ return self.filter(type = 1)
def all_json(self, user = AnonymousUser()):
u'''