Showing
1 changed file
with
2 additions
and
2 deletions
@@ -3,7 +3,7 @@ from django_filters.rest_framework import DjangoFilterBackend | @@ -3,7 +3,7 @@ from django_filters.rest_framework import DjangoFilterBackend | ||
3 | from rest_framework.response import Response | 3 | from rest_framework.response import Response |
4 | from rest_framework.permissions import IsAuthenticated | 4 | from rest_framework.permissions import IsAuthenticated |
5 | from rest_framework.decorators import action | 5 | from rest_framework.decorators import action |
6 | -from datetime import datetime | 6 | +from dango.utils import timezone |
7 | 7 | ||
8 | from .models import Edicto, Precio | 8 | from .models import Edicto, Precio |
9 | from .serializer import EdictoSerializer, PrecioSerializer | 9 | from .serializer import EdictoSerializer, PrecioSerializer |
@@ -47,7 +47,7 @@ class EdictoViewSet(mixins.CreateModelMixin, | @@ -47,7 +47,7 @@ class EdictoViewSet(mixins.CreateModelMixin, | ||
47 | usuario = self.request.user | 47 | usuario = self.request.user |
48 | 48 | ||
49 | serializer.save(cantidad_palabras=cantidad_palabras, | 49 | serializer.save(cantidad_palabras=cantidad_palabras, |
50 | - fecha_modificacion=datetime.now(), | 50 | + fecha_modificacion=timezone.now(), |
51 | usuario_movimiento=usuario, | 51 | usuario_movimiento=usuario, |
52 | ) | 52 | ) |
53 | 53 |
-
Please register or login to post a comment