Ticket #10295: 10295.patch
File 10295.patch, 1023 bytes (added by , 13 years ago) |
---|
-
django/core/serializers/xml_serializer.py
48 48 else: 49 49 attrs = { 50 50 "pk": smart_unicode(obj._get_pk_val()), 51 "name": smart_unicode(obj._meta.pk.name), 51 52 "model": smart_unicode(obj._meta), 52 53 } 53 54 -
django/core/serializers/python.py
30 30 self.objects.append({ 31 31 "model" : smart_unicode(obj._meta), 32 32 "pk" : smart_unicode(obj._get_pk_val(), strings_only=True), 33 "name" : smart_unicode(obj._meta.pk.name), 33 34 "fields" : self._current 34 35 }) 35 36 self._current = None