Enzo Yair

feature/#68_agregar_campos_edicto

1 -# Generated by Django 4.1.9 on 2023-09-28 13:17 1 +# Generated by Django 4.1.9 on 2023-09-29 10:02
2 2
3 from django.db import migrations, models 3 from django.db import migrations, models
4 4
@@ -30,7 +30,7 @@ class Migration(migrations.Migration): @@ -30,7 +30,7 @@ class Migration(migrations.Migration):
30 migrations.AddField( 30 migrations.AddField(
31 model_name='edicto', 31 model_name='edicto',
32 name='tiene_descuento', 32 name='tiene_descuento',
33 - field=models.BooleanField(default=False, editable=False), 33 + field=models.BooleanField(editable=False),
34 preserve_default=False, 34 preserve_default=False,
35 ), 35 ),
36 migrations.AddField( 36 migrations.AddField(
@@ -4,6 +4,7 @@ from usuario.serializers import UsuarioListaSerializer @@ -4,6 +4,7 @@ from usuario.serializers import UsuarioListaSerializer
4 from .constants import EXTENSIONES_VALIDAS 4 from .constants import EXTENSIONES_VALIDAS
5 from .models import Edicto, Precio 5 from .models import Edicto, Precio
6 from .utils import contador 6 from .utils import contador
  7 +from .precio import contador
7 8
8 9
9 class EdictoSerializer(serializers.ModelSerializer): 10 class EdictoSerializer(serializers.ModelSerializer):
@@ -41,6 +42,7 @@ class EdictoSerializer(serializers.ModelSerializer): @@ -41,6 +42,7 @@ class EdictoSerializer(serializers.ModelSerializer):
41 data['creado_por'] = request.user 42 data['creado_por'] = request.user
42 43
43 data['modificado_por'] = request.user 44 data['modificado_por'] = request.user
  45 +
44 return data 46 return data
45 47
46 @staticmethod 48 @staticmethod