diff --git a/app/website/migrations/0003_alter_talk_category.py b/app/website/migrations/0003_alter_talk_category.py new file mode 100644 index 0000000..0cf6b3d --- /dev/null +++ b/app/website/migrations/0003_alter_talk_category.py @@ -0,0 +1,19 @@ +# Generated by Django 3.2.9 on 2021-11-20 23:04 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0002_alter_talk_author'), + ] + + operations = [ + migrations.AlterField( + model_name='talk', + name='category', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='talk_category', to='website.category', verbose_name='Categoría'), + ), + ] diff --git a/app/website/migrations/0004_auto_20211121_0751.py b/app/website/migrations/0004_auto_20211121_0751.py new file mode 100644 index 0000000..4e5cf73 --- /dev/null +++ b/app/website/migrations/0004_auto_20211121_0751.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.9 on 2021-11-21 07:51 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0003_alter_talk_category'), + ] + + operations = [ + migrations.RemoveField( + model_name='talk', + name='author', + ), + migrations.AddField( + model_name='talk', + name='speaker', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='website.profile', verbose_name='Ponente'), + ), + ] diff --git a/app/website/migrations/0005_auto_20211121_0757.py b/app/website/migrations/0005_auto_20211121_0757.py new file mode 100644 index 0000000..e294b34 --- /dev/null +++ b/app/website/migrations/0005_auto_20211121_0757.py @@ -0,0 +1,24 @@ +# Generated by Django 3.2.9 on 2021-11-21 07:57 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('website', '0004_auto_20211121_0751'), + ] + + operations = [ + migrations.AlterField( + model_name='talk', + name='category', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='talkcategory', to='website.category', verbose_name='Categoría'), + ), + migrations.AlterField( + model_name='talk', + name='speaker', + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='talkspeaker', to='website.profile', verbose_name='Ponente'), + ), + ] diff --git a/app/website/models.py b/app/website/models.py index 0f21cfd..a9cd810 100644 --- a/app/website/models.py +++ b/app/website/models.py @@ -41,15 +41,15 @@ class Talk(models.Model): Category, on_delete=models.SET_NULL, null=True, - related_name="Categoría", + related_name="talkcategory", verbose_name="Categoría", ) - author = models.ForeignKey( + speaker = models.ForeignKey( Profile, on_delete=models.SET_NULL, null=True, - related_name="talk_profile", - verbose_name="Autor", + related_name="talkspeaker", + verbose_name="Ponente", ) image = models.ImageField(verbose_name="Imagen", upload_to="uploads/talks/") is_draft = models.BooleanField(default=True, verbose_name="¿Es un borrador?") diff --git a/app/website/templates/components/link.html b/app/website/templates/components/link.html index 1930c8e..75447c9 100644 --- a/app/website/templates/components/link.html +++ b/app/website/templates/components/link.html @@ -1,4 +1,4 @@ -
\ No newline at end of file diff --git a/app/website/templates/pages/profiles.html b/app/website/templates/pages/profiles.html index f787c4e..174189a 100644 --- a/app/website/templates/pages/profiles.html +++ b/app/website/templates/pages/profiles.html @@ -9,12 +9,12 @@ {{ profile.full_name }}- + {# #}