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 18:04:48 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
25250c9e95220077fba5b5457b014df6b9c67f39
25250c9e
1 parent
99295e11
actualizacion
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
project/apps/edicto/api.py
project/apps/edicto/serializer.py
project/apps/edicto/api.py
View file @
25250c9
...
...
@@ -45,7 +45,6 @@ class EdictoViewSet(mixins.CreateModelMixin,
usuario
=
self
.
request
.
user
serializer
.
save
(
cantidad_palabras
=
cantidad_palabras
,
fecha_modificacion
=
timezone
.
now
(),
usuario_movimiento
=
usuario
,
)
...
...
project/apps/edicto/serializer.py
View file @
25250c9
...
...
@@ -31,7 +31,8 @@ class EdictoSerializer(serializers.ModelSerializer):
)
extra_kwargs
=
{
'archivo'
:
{
'read_only'
:
True
}
'archivo'
:
{
'read_only'
:
True
},
'cantidad_palabras'
:
{
'read_only'
:
True
}
}
read_only_fields
=
(
'usuario'
,
'usuario_movimiento'
,
...
...
Please
register
or
login
to post a comment