Showing
2 changed files
with
20 additions
and
2 deletions
1 | +# Generated by Django 4.1.9 on 2023-10-06 12:45 | ||
2 | + | ||
3 | +from django.db import migrations, models | ||
4 | + | ||
5 | + | ||
6 | +class Migration(migrations.Migration): | ||
7 | + | ||
8 | + dependencies = [ | ||
9 | + ('edicto', '0004_alter_precio_usuario'), | ||
10 | + ] | ||
11 | + | ||
12 | + operations = [ | ||
13 | + migrations.AlterField( | ||
14 | + model_name='edicto', | ||
15 | + name='estado', | ||
16 | + 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), | ||
17 | + ), | ||
18 | + ] |
@@ -10,7 +10,7 @@ from .constants import STATUS_CHOICE, MONEDA | @@ -10,7 +10,7 @@ from .constants import STATUS_CHOICE, MONEDA | ||
10 | 10 | ||
11 | 11 | ||
12 | class Precio(models.Model): | 12 | 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, editable=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, editable=False) |
@@ -37,7 +37,7 @@ class Edicto(models.Model): | @@ -37,7 +37,7 @@ class Edicto(models.Model): | ||
37 | archivo = models.FileField(upload_to="uploads/%Y/%m/%d/") | 37 | archivo = models.FileField(upload_to="uploads/%Y/%m/%d/") |
38 | dias_publicar = models.PositiveIntegerField() | 38 | dias_publicar = models.PositiveIntegerField() |
39 | cantidad_sellos = models.PositiveIntegerField() | 39 | cantidad_sellos = models.PositiveIntegerField() |
40 | - estado = models.CharField(max_length=23, choices=STATUS_CHOICE, default='inciado') | 40 | + estado = models.CharField(max_length=23, choices=STATUS_CHOICE, default='iniciado') |
41 | cantidad_palabras = models.IntegerField(editable=False) | 41 | cantidad_palabras = models.IntegerField(editable=False) |
42 | cantidad_copias = models.PositiveIntegerField() | 42 | cantidad_copias = models.PositiveIntegerField() |
43 | observaciones = models.CharField(max_length=500, blank=True) | 43 | observaciones = models.CharField(max_length=500, blank=True) |
-
Please register or login to post a comment