Add 'Frage Einsender', edit intern/template & intern views.py, other changes

This commit is contained in:
root committed 2026-05-17 21:46:34 +02:00
1 parent 5889b18a3a
commit 8b1d6c9aa3
21 files changed
+675 -228

No files matched your search

@@ -0,0 +1,33 @@
# Generated by Django 5.2.11 on 2026-05-17 17:40
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gd', '0007_folgenzusatzinfo_melde_count'),
]
operations = [
migrations.CreateModel(
name='Einsender',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(blank=True, help_text='Name des Zuschauers (optional)', max_length=150, null=True)),
('stadt', models.CharField(blank=True, help_text='Stadt des Einsenders (optional)', max_length=100, null=True)),
('bundesland', models.CharField(blank=True, help_text='Bundesland des Einsenders (optional)', max_length=100, null=True)),
('land', models.CharField(default='Deutschland', help_text='Land des Einsenders (standardmäßig Deutschland)', max_length=100)),
],
options={
'verbose_name_plural': 'Einsender',
'ordering': ['stadt', 'name'],
},
),
migrations.AddField(
model_name='frage',
name='einsender',
field=models.ForeignKey(blank=True, help_text='Wer hat die Frage eingeschickt?', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='fragen', to='gd.einsender'),
),
]