diff options
Diffstat (limited to '97suifangqa/apps/sciblog/managers.py')
-rw-r--r-- | 97suifangqa/apps/sciblog/managers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/97suifangqa/apps/sciblog/managers.py b/97suifangqa/apps/sciblog/managers.py index ae6beb3..8ec0773 100644 --- a/97suifangqa/apps/sciblog/managers.py +++ b/97suifangqa/apps/sciblog/managers.py @@ -10,13 +10,13 @@ class AnnotationManager(models.Manager): u''' 获取段落注释 ''' - return self.filter(type = 0) + return self.filter(type = self.PARAGRAPH) def propernouns(self): u''' 获取专有名词 ''' - return self.filter(type = 1) + return self.filter(type = self.PROPER_NOUN) def all_json(self, user = AnonymousUser()): u''' |