Enzo Yair

correcion en related_name

# Generated by Django 4.1.9 on 2023-09-20 13:01
# Generated by Django 4.1.9 on 2023-09-20 13:27
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
... ... @@ -7,6 +8,7 @@ import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('edicto', '0018_alter_edicto_fecha_modificacion'),
]
... ... @@ -42,6 +44,11 @@ class Migration(migrations.Migration):
field=models.IntegerField(editable=False),
),
migrations.AlterField(
model_name='edicto',
name='modificado_por',
field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, related_name='update_edicto', to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='precio',
name='vigencia_hasta',
field=models.DateField(blank=True, null=True),
... ...
... ... @@ -38,7 +38,7 @@ class Edicto(models.Model):
observaciones = models.CharField(max_length=500, blank=True, null=True)
fecha_creacion = models.DateField(auto_now_add=True, editable=False)
fecha_modificacion = models.DateTimeField(auto_now=True, editable=False)
modificado_por = models.ForeignKey(Usuario, on_delete=models.CASCADE, related_name='udate_edicto', editable=False)
modificado_por = models.ForeignKey(Usuario, on_delete=models.CASCADE, related_name='update_edicto', editable=False)
class Meta:
verbose_name = 'Edicto'
... ...