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-15 07:30:14 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a2253e7d358804f1329d1e3e2bebce17a3c5bcd7
a2253e7d
1 parent
740bb130
to_representation vuelve a la funcion original
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
project/apps/edicto/serializer.py
project/apps/edicto/serializer.py
View file @
a2253e7
...
...
@@ -42,6 +42,8 @@ class EdictoSerializer(serializers.ModelSerializer):
data
=
super
()
.
to_representation
(
instance
)
if
instance
.
fecha_modificacion
is
not
None
and
self
.
context
[
'request'
]
.
method
==
'PATCH'
:
data
[
'fecha_modificacion'
]
=
instance
.
fecha_modificacion
else
:
data
[
'fecha_modificacion'
]
=
None
return
data
@staticmethod
...
...
Please
register
or
login
to post a comment