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-27 10:02:40 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f1ef435d37bae16f632fe493915c66355fb4bafc
f1ef435d
1 parent
e7211fcf
filtros
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
14 deletions
project/apps/edicto/migrations/0005_remove_comprobantepago_monto_and_more.py
project/apps/edicto/models.py
project/apps/edicto/migrations/0005_remove_comprobantepago_monto_and_more.py
View file @
f1ef435
# Generated by Django 4.1.9 on 2023-09-27 1
2:46
# Generated by Django 4.1.9 on 2023-09-27 1
3:02
from
django.conf
import
settings
from
django.db
import
migrations
,
models
...
...
@@ -32,20 +32,9 @@ class Migration(migrations.Migration):
name
=
'monto_total'
,
field
=
models
.
FloatField
(
editable
=
False
,
null
=
True
),
),
migrations
.
AddField
(
model_name
=
'precio'
,
name
=
'precio_dia'
,
field
=
models
.
FloatField
(
default
=
90.34
),
preserve_default
=
False
,
),
migrations
.
AlterField
(
model_name
=
'edicto'
,
name
=
'creado_por'
,
field
=
models
.
ForeignKey
(
editable
=
False
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
settings
.
AUTH_USER_MODEL
),
),
migrations
.
AlterField
(
model_name
=
'precio'
,
name
=
'usuario'
,
field
=
models
.
ForeignKey
(
editable
=
False
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
settings
.
AUTH_USER_MODEL
),
),
]
...
...
project/apps/edicto/models.py
View file @
f1ef435
...
...
@@ -13,11 +13,10 @@ class Precio(models.Model):
precio
=
models
.
FloatField
(
max_length
=
50
,
blank
=
False
,
null
=
False
)
vigencia_desde
=
models
.
DateField
()
vigencia_hasta
=
models
.
DateField
(
blank
=
True
,
null
=
True
)
usuario
=
models
.
ForeignKey
(
Usuario
,
on_delete
=
models
.
CASCADE
,
editable
=
False
)
usuario
=
models
.
ForeignKey
(
Usuario
,
on_delete
=
models
.
CASCADE
)
moneda
=
models
.
CharField
(
max_length
=
50
,
blank
=
False
,
null
=
False
,
choices
=
MONEDA
,
default
=
'peso_argentino'
)
precio_ejemplar
=
models
.
FloatField
(
max_length
=
50
,
blank
=
False
,
null
=
False
)
precio_dia
=
models
.
FloatField
()
class
Meta
:
verbose_name
=
'Precio'
...
...
Please
register
or
login
to post a comment