Enzo Yair

correcion en related_name

1 -# Generated by Django 4.1.9 on 2023-09-20 13:01 1 +# Generated by Django 4.1.9 on 2023-09-20 13:27
2 2
  3 +from django.conf import settings
3 from django.db import migrations, models 4 from django.db import migrations, models
4 import django.db.models.deletion 5 import django.db.models.deletion
5 6
@@ -7,6 +8,7 @@ import django.db.models.deletion @@ -7,6 +8,7 @@ import django.db.models.deletion
7 class Migration(migrations.Migration): 8 class Migration(migrations.Migration):
8 9
9 dependencies = [ 10 dependencies = [
  11 + migrations.swappable_dependency(settings.AUTH_USER_MODEL),
10 ('edicto', '0018_alter_edicto_fecha_modificacion'), 12 ('edicto', '0018_alter_edicto_fecha_modificacion'),
11 ] 13 ]
12 14
@@ -42,6 +44,11 @@ class Migration(migrations.Migration): @@ -42,6 +44,11 @@ class Migration(migrations.Migration):
42 field=models.IntegerField(editable=False), 44 field=models.IntegerField(editable=False),
43 ), 45 ),
44 migrations.AlterField( 46 migrations.AlterField(
  47 + model_name='edicto',
  48 + name='modificado_por',
  49 + field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, related_name='update_edicto', to=settings.AUTH_USER_MODEL),
  50 + ),
  51 + migrations.AlterField(
45 model_name='precio', 52 model_name='precio',
46 name='vigencia_hasta', 53 name='vigencia_hasta',
47 field=models.DateField(blank=True, null=True), 54 field=models.DateField(blank=True, null=True),
@@ -38,7 +38,7 @@ class Edicto(models.Model): @@ -38,7 +38,7 @@ class Edicto(models.Model):
38 observaciones = models.CharField(max_length=500, blank=True, null=True) 38 observaciones = models.CharField(max_length=500, blank=True, null=True)
39 fecha_creacion = models.DateField(auto_now_add=True, editable=False) 39 fecha_creacion = models.DateField(auto_now_add=True, editable=False)
40 fecha_modificacion = models.DateTimeField(auto_now=True, editable=False) 40 fecha_modificacion = models.DateTimeField(auto_now=True, editable=False)
41 - modificado_por = models.ForeignKey(Usuario, on_delete=models.CASCADE, related_name='udate_edicto', editable=False) 41 + modificado_por = models.ForeignKey(Usuario, on_delete=models.CASCADE, related_name='update_edicto', editable=False)
42 42
43 class Meta: 43 class Meta:
44 verbose_name = 'Edicto' 44 verbose_name = 'Edicto'