Ticket #17310: kill_test.patch

File kill_test.patch, 632 bytes (added by Rémy Hubscher, 13 years ago)

Here is the regressiontest patch to reproduce the bug

  • models.py

    old new  
    55
    66class Award(models.Model):
    77    name = models.CharField(max_length=25)
    8     object_id = models.PositiveIntegerField()
    9     content_type = models.ForeignKey(ContentType)
    10     content_object = generic.GenericForeignKey()
     8    app_object_id = models.PositiveIntegerField()
     9    app_content_type = models.ForeignKey(ContentType)
     10    content_object = generic.GenericForeignKey('app_content_type', 'app_object_id')
    1111
    1212class AwardNote(models.Model):
    1313    award = models.ForeignKey(Award)
Back to Top