Showing
1 changed file
with
1 additions
and
4 deletions
@@ -43,10 +43,7 @@ class EdictoSerializer(serializers.ModelSerializer): | @@ -43,10 +43,7 @@ class EdictoSerializer(serializers.ModelSerializer): | ||
43 | cantidad_palabras = contador(edicto) | 43 | cantidad_palabras = contador(edicto) |
44 | data['cantidad_palabras'] = cantidad_palabras | 44 | data['cantidad_palabras'] = cantidad_palabras |
45 | request = self.context['request'] | 45 | request = self.context['request'] |
46 | - if request.method == 'POST': | ||
47 | - data['usuario'] = request.user | ||
48 | - else: | ||
49 | - pass | 46 | + data['usuario'] = request.user |
50 | data['usuario_movimiento'] = request.user | 47 | data['usuario_movimiento'] = request.user |
51 | return data | 48 | return data |
52 | 49 |
-
Please register or login to post a comment