Enzo Yair

filtros

# Generated by Django 4.1.9 on 2023-09-27 12:46
# Generated by Django 4.1.9 on 2023-09-27 13: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),
),
]
... ...
... ... @@ -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'
... ...