Merge pull request #12 from vdboor/master

Avoid SQL query in pre_save_polymorphic()
fix_request_path_info
Chris Glass 2013-02-24 05:07:07 -08:00
commit 2c1c5d7630
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class PolymorphicModel(models.Model):
field to figure out the real class of this object
(used by PolymorphicQuerySet._get_real_instances)
"""
if not self.polymorphic_ctype:
if not self.polymorphic_ctype_id:
self.polymorphic_ctype = ContentType.objects.get_for_model(self)
def save(self, *args, **kwargs):