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-19 10:10:02 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
70307cf76d446849a6d9fa671f53dcbc67f8d03f
70307cf7
1 parent
aab07bc0
eliminacion de referencia
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
project/apps/edicto/serializer.py
project/apps/edicto/serializer.py
View file @
70307cf
...
...
@@ -40,8 +40,7 @@ class EdictoSerializer(serializers.ModelSerializer):
def
validate
(
self
,
data
):
edicto
=
data
.
get
(
'cuerpo_edicto'
,
''
)
cantidad_palabras
=
contador
(
edicto
)
data
[
'cantidad_palabras'
]
=
cantidad_palabras
data
[
'cantidad_palabras'
]
=
contador
(
edicto
)
request
=
self
.
context
[
'request'
]
if
request
.
method
==
'POST'
:
data
[
'creado_por'
]
=
request
.
user
...
...
Please
register
or
login
to post a comment