Ticket #2316: generic_patch.diff

File generic_patch.diff, 413 bytes (added by slevcom1@…, 18 years ago)

patch to fix get_or_create with GenericRelation

  • generic.py

     
    243243            return obj
    244244        create.alters_data = True
    245245
     246        def get_or_create(self, **kwargs):
     247            self.get_query_set().get_or_create(**kwargs)
     248
    246249    return GenericRelatedObjectManager
    247250
    248251class GenericRel(ManyToManyRel):
Back to Top