Ticket #1740: models.diff
File models.diff, 830 bytes (added by , 19 years ago) |
---|
-
models.py
124 124 """ 125 125 from django.core.exceptions import ObjectDoesNotExist 126 126 try: 127 return self. get_content_type().get_object_for_this_type(pk=self.object_id)127 return self.content_type.get_object_for_this_type(pk=self.object_id) 128 128 except ObjectDoesNotExist: 129 129 return None 130 130 … … 200 200 """ 201 201 from django.core.exceptions import ObjectDoesNotExist 202 202 try: 203 return self. get_content_type().get_object_for_this_type(pk=self.object_id)203 return self.content_type.get_object_for_this_type(pk=self.object_id) 204 204 except ObjectDoesNotExist: 205 205 return None 206 206