Changes between Version 2 and Version 3 of Ticket #29738, comment 6
- Timestamp:
- Sep 16, 2018, 8:06:54 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29738, comment 6
v2 v3 6 6 def serialize(self): 7 7 from django.utils.deconstruct import deconstructible 8 deconstructible_ value= deconstructible(8 deconstructible_klass = deconstructible( 9 9 self.value.__class__, 10 10 path=self.value.__module__ + "." + self.value.__class__.__name__ 11 11 ) 12 self.value = deconstructible_value(self.value.__init__) 12 init_values = [v for v in self.value.__reduce__()[2].values()] 13 self.value = deconstructible_klass(init_values) 13 14 return DeconstructableSerializer(self.value).serialize() 14 15