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 12:36:45 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
577470f7d4953f17cbefbb625e20317bfa434d0d
577470f7
1 parent
c2aa502c
se quito else de la validacion en el serializer
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
project/apps/edicto/serializer.py
project/apps/edicto/serializer.py
View file @
577470f
...
...
@@ -42,8 +42,6 @@ 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