Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Marta Miranda
/
boletin_api
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Enzo Yair
2023-09-14 11:45:18 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bf8feea95c880862777b2224572a650bd34fea46
bf8feea9
1 parent
6c2a402c
cambio de modulo de datatime a timezone.now()
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
project/apps/edicto/api.py
project/apps/edicto/api.py
View file @
bf8feea
...
...
@@ -3,7 +3,7 @@ from django_filters.rest_framework import DjangoFilterBackend
from
rest_framework.response
import
Response
from
rest_framework.permissions
import
IsAuthenticated
from
rest_framework.decorators
import
action
from
da
tetime
import
datetim
e
from
da
ngo.utils
import
timezon
e
from
.models
import
Edicto
,
Precio
from
.serializer
import
EdictoSerializer
,
PrecioSerializer
...
...
@@ -47,7 +47,7 @@ class EdictoViewSet(mixins.CreateModelMixin,
usuario
=
self
.
request
.
user
serializer
.
save
(
cantidad_palabras
=
cantidad_palabras
,
fecha_modificacion
=
datetim
e
.
now
(),
fecha_modificacion
=
timezon
e
.
now
(),
usuario_movimiento
=
usuario
,
)
...
...
Please
register
or
login
to post a comment