Enzo Yair

feature/#68_agregar_campos_edicto

# Generated by Django 4.1.9 on 2023-09-28 13:17
# Generated by Django 4.1.9 on 2023-09-29 10:02
from django.db import migrations, models
... ... @@ -30,7 +30,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='edicto',
name='tiene_descuento',
field=models.BooleanField(default=False, editable=False),
field=models.BooleanField(editable=False),
preserve_default=False,
),
migrations.AddField(
... ...
... ... @@ -4,6 +4,7 @@ from usuario.serializers import UsuarioListaSerializer
from .constants import EXTENSIONES_VALIDAS
from .models import Edicto, Precio
from .utils import contador
from .precio import contador
class EdictoSerializer(serializers.ModelSerializer):
... ... @@ -41,6 +42,7 @@ class EdictoSerializer(serializers.ModelSerializer):
data['creado_por'] = request.user
data['modificado_por'] = request.user
return data
@staticmethod
... ...