more finetuning in BusinessCards
This commit is contained in:
parent
4d720aa6a3
commit
6b21066173
2 changed files with 30 additions and 5 deletions
23
input/migrations/0053_auto_20201118_1531.py
Normal file
23
input/migrations/0053_auto_20201118_1531.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 3.1.1 on 2020-11-18 15:31
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('input', '0052_auto_20201118_1524'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='businesscard',
|
||||
name='sent_to',
|
||||
field=models.TextField(default='', help_text='Bitte gib den Namen und die vollständige Adresse ein, an welche die Visitenkarten geschickt werden sollen.', max_length=1000, verbose_name='Versandadresse'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='businesscard',
|
||||
name='variant',
|
||||
field=models.CharField(choices=[('PIC', 'mit Bild'), ('NOPIC', 'ohne Bild')], default='NOPIC', help_text='so sehen die Varianten aus: <a href="https://upload.wikimedia.org/wikipedia/commons/c/cd/Muster_Visitenkarten_WMDE_2018.jpg"> mit Bild</a> <a href="https://upload.wikimedia.org/wikipedia/commons/d/d3/Muster_Visitenkarte_WMDE.png">ohne Bild</a>', max_length=5, verbose_name='Variante'),
|
||||
),
|
||||
]
|
|
@ -201,8 +201,8 @@ PROJECT_CHOICE = {'PEDIA': 'Wikipedia',
|
|||
'NEWS': 'Wikinews',
|
||||
'COMMONS': 'Wikimedia Commons'}
|
||||
|
||||
BC_VARIANT = {'PIC': 'Mit Bild',
|
||||
'NOPIC': 'Ohne Bild'}
|
||||
BC_VARIANT = {'PIC': 'mit Bild',
|
||||
'NOPIC': 'ohne Bild'}
|
||||
|
||||
class BusinessCard(Extern):
|
||||
project = models.CharField(max_length=20, choices=PROJECT_CHOICE.items(),
|
||||
|
@ -218,6 +218,8 @@ class BusinessCard(Extern):
|
|||
DIN 5008 ab. Als anzugebende E-Mail-Adresse empfehlen wir dir eine Wikimedia-Projekt-<br>\
|
||||
Adresse, die du ebenfalls beantragen kannst, sofern du nicht bereits eine besitzt."))
|
||||
variant = models.CharField(max_length=5, choices=BC_VARIANT.items(),
|
||||
default='NOPIC', verbose_name='Variante')
|
||||
sent_to = models.CharField(max_length=1000, verbose_name='Sendungsadresse',
|
||||
default='')
|
||||
default='NOPIC', verbose_name='Variante',
|
||||
help_text=format_html('so sehen die Varianten aus: <a href="https://upload.wikimedia.org/wikipedia/commons/c/cd/Muster_Visitenkarten_WMDE_2018.jpg">\
|
||||
mit Bild</a> <a href="https://upload.wikimedia.org/wikipedia/commons/d/d3/Muster_Visitenkarte_WMDE.png">ohne Bild</a>' ))
|
||||
sent_to = models.TextField(max_length=1000, verbose_name='Versandadresse',
|
||||
default='', help_text="Bitte gib den Namen und die vollständige Adresse ein, an welche die Visitenkarten geschickt werden sollen.")
|
||||
|
|
Loading…
Reference in a new issue