Ticket #16281: 16281.diff

File 16281.diff, 656 bytes (added by tfrydrychewicz@…, 13 years ago)

Patch

  • django/contrib/contenttypes/models.py

     
    100100        method. The ObjectNotExist exception, if thrown, will not be caught,
    101101        so code that calls this method should catch it.
    102102        """
    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)
    104104
    105105    def natural_key(self):
    106106        return (self.app_label, self.model)
Back to Top