Showing
2 changed files
with
2 additions
and
14 deletions
1 | -# Generated by Django 4.1.9 on 2023-09-27 12:46 | 1 | +# Generated by Django 4.1.9 on 2023-09-27 13:02 |
2 | 2 | ||
3 | from django.conf import settings | 3 | from django.conf import settings |
4 | from django.db import migrations, models | 4 | from django.db import migrations, models |
@@ -32,20 +32,9 @@ class Migration(migrations.Migration): | @@ -32,20 +32,9 @@ class Migration(migrations.Migration): | ||
32 | name='monto_total', | 32 | name='monto_total', |
33 | field=models.FloatField(editable=False, null=True), | 33 | field=models.FloatField(editable=False, null=True), |
34 | ), | 34 | ), |
35 | - migrations.AddField( | ||
36 | - model_name='precio', | ||
37 | - name='precio_dia', | ||
38 | - field=models.FloatField(default=90.34), | ||
39 | - preserve_default=False, | ||
40 | - ), | ||
41 | migrations.AlterField( | 35 | migrations.AlterField( |
42 | model_name='edicto', | 36 | model_name='edicto', |
43 | name='creado_por', | 37 | name='creado_por', |
44 | field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), | 38 | field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), |
45 | ), | 39 | ), |
46 | - migrations.AlterField( | ||
47 | - model_name='precio', | ||
48 | - name='usuario', | ||
49 | - field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), | ||
50 | - ), | ||
51 | ] | 40 | ] |
@@ -13,11 +13,10 @@ class Precio(models.Model): | @@ -13,11 +13,10 @@ class Precio(models.Model): | ||
13 | precio = models.FloatField(max_length=50, blank=False, null=False) | 13 | precio = models.FloatField(max_length=50, blank=False, null=False) |
14 | vigencia_desde = models.DateField() | 14 | vigencia_desde = models.DateField() |
15 | vigencia_hasta = models.DateField(blank=True, null=True) | 15 | vigencia_hasta = models.DateField(blank=True, null=True) |
16 | - usuario = models.ForeignKey(Usuario, on_delete=models.CASCADE, editable=False) | 16 | + usuario = models.ForeignKey(Usuario, on_delete=models.CASCADE) |
17 | moneda = models.CharField(max_length=50, blank=False, null=False, choices=MONEDA, | 17 | moneda = models.CharField(max_length=50, blank=False, null=False, choices=MONEDA, |
18 | default='peso_argentino') | 18 | default='peso_argentino') |
19 | precio_ejemplar = models.FloatField(max_length=50, blank=False, null=False) | 19 | precio_ejemplar = models.FloatField(max_length=50, blank=False, null=False) |
20 | - precio_dia = models.FloatField() | ||
21 | 20 | ||
22 | class Meta: | 21 | class Meta: |
23 | verbose_name = 'Precio' | 22 | verbose_name = 'Precio' |
-
Please register or login to post a comment