Ticket #2707: query.py.patch
File query.py.patch, 710 bytes (added by , 18 years ago) |
---|
-
django/contrib/search/query.py
29 29 30 30 def get_pk(self): 31 31 raise NotImplementedError 32 33 def get_object(self): 34 return self.model.objects.get(pk=self.get_pk()) 32 35 33 36 def __repr__(self): 34 return "<%s: %s %s, Score:%s>" % (self.__class__.__name__,37 return "<%s: Model:%s pk:%s, Score:%s>" % (self.__class__.__name__, 35 38 self.model._meta, 36 39 self.get_pk(), self.score) 40 No newline at end of file