Showing
1 changed file
with
0 additions
and
2 deletions
@@ -42,8 +42,6 @@ class EdictoSerializer(serializers.ModelSerializer): | @@ -42,8 +42,6 @@ class EdictoSerializer(serializers.ModelSerializer): | ||
42 | data = super().to_representation(instance) | 42 | data = super().to_representation(instance) |
43 | if instance.fecha_modificacion is not None and self.context['request'].method == 'PATCH': | 43 | if instance.fecha_modificacion is not None and self.context['request'].method == 'PATCH': |
44 | data['fecha_modificacion'] = instance.fecha_modificacion | 44 | data['fecha_modificacion'] = instance.fecha_modificacion |
45 | - else: | ||
46 | - data['fecha_modificacion'] = None | ||
47 | return data | 45 | return data |
48 | 46 | ||
49 | @staticmethod | 47 | @staticmethod |
-
Please register or login to post a comment