Ticket #16281: 16281.diff
File 16281.diff, 656 bytes (added by , 13 years ago) |
---|
-
django/contrib/contenttypes/models.py
100 100 method. The ObjectNotExist exception, if thrown, will not be caught, 101 101 so code that calls this method should catch it. 102 102 """ 103 return self.model_class()._base_manager.using(self. _state.db).get(**kwargs)103 return self.model_class()._base_manager.using(self.model_class().objects.db).get(**kwargs) 104 104 105 105 def natural_key(self): 106 106 return (self.app_label, self.model)