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-10-06 10:20:54 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
421b211e233213eba027edbbf23866ac00ea630d
421b211e
1 parent
22aefb37
correcion de palabra en la columna estado
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
project/apps/edicto/migrations/0005_alter_edicto_estado.py
project/apps/edicto/models.py
project/apps/edicto/migrations/0005_alter_edicto_estado.py
0 → 100644
View file @
421b211
# Generated by Django 4.1.9 on 2023-10-06 12:45
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'edicto'
,
'0004_alter_precio_usuario'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'edicto'
,
name
=
'estado'
,
field
=
models
.
CharField
(
choices
=
[(
'iniciado'
,
'iniciado'
),
(
'pendiente_de_pago'
,
'pendiente_de_pago'
),
(
'pendiente_pago_revision'
,
'pendiente_pago_revision'
),
(
'publicado'
,
'publicado'
),
(
'aprobado'
,
'aprobado'
),
(
'rechazado'
,
'rechazado'
)],
default
=
'iniciado'
,
max_length
=
23
),
),
]
...
...
project/apps/edicto/models.py
View file @
421b211
...
...
@@ -10,7 +10,7 @@ from .constants import STATUS_CHOICE, MONEDA
class
Precio
(
models
.
Model
):
precio
=
models
.
FloatField
(
max_length
=
50
,
blank
=
False
,
null
=
False
)
precio
=
models
.
FloatField
(
max_length
=
50
,
blank
=
False
,
null
=
False
,
editable
=
False
)
vigencia_desde
=
models
.
DateField
()
vigencia_hasta
=
models
.
DateField
(
blank
=
True
,
null
=
True
)
usuario
=
models
.
ForeignKey
(
Usuario
,
on_delete
=
models
.
CASCADE
,
editable
=
False
)
...
...
@@ -37,7 +37,7 @@ class Edicto(models.Model):
archivo
=
models
.
FileField
(
upload_to
=
"uploads/
%
Y/
%
m/
%
d/"
)
dias_publicar
=
models
.
PositiveIntegerField
()
cantidad_sellos
=
models
.
PositiveIntegerField
()
estado
=
models
.
CharField
(
max_length
=
23
,
choices
=
STATUS_CHOICE
,
default
=
'inciado'
)
estado
=
models
.
CharField
(
max_length
=
23
,
choices
=
STATUS_CHOICE
,
default
=
'in
i
ciado'
)
cantidad_palabras
=
models
.
IntegerField
(
editable
=
False
)
cantidad_copias
=
models
.
PositiveIntegerField
()
observaciones
=
models
.
CharField
(
max_length
=
500
,
blank
=
True
)
...
...
Please
register
or
login
to post a comment