1
0
Fork 0

some new fields for Project Model

This commit is contained in:
Benni Bärmann 2020-11-02 10:58:20 +01:00
parent d35c9c55d1
commit d4815129df
3 changed files with 175 additions and 5 deletions

View File

@ -0,0 +1,23 @@
# Generated by Django 3.1.1 on 2020-11-02 09:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('input', '0033_auto_20201029_1338'),
]
operations = [
migrations.AddField(
model_name='project',
name='description',
field=models.CharField(max_length=500, null=True, verbose_name='Kurzbeschreibung'),
),
migrations.AlterField(
model_name='project',
name='name',
field=models.CharField(max_length=200, verbose_name='Name des Projekts'),
),
]

View File

@ -0,0 +1,138 @@
# Generated by Django 3.1.1 on 2020-11-02 09:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('input', '0034_auto_20201102_0913'),
]
operations = [
migrations.AddField(
model_name='project',
name='group',
field=models.CharField(blank=True, max_length=2000, null=True, verbose_name='Mitorganisierende'),
),
migrations.AddField(
model_name='project',
name='location',
field=models.CharField(blank=True, max_length=2000, null=True, verbose_name='Ort/Adresse/Location'),
),
migrations.AddField(
model_name='project',
name='otrs',
field=models.CharField(max_length=300, null=True, verbose_name='OTRS-Link'),
),
migrations.AddField(
model_name='project',
name='page',
field=models.CharField(blank=True, max_length=2000, null=True, verbose_name='Link zur Projektseite'),
),
migrations.AddField(
model_name='project',
name='plan',
field=models.CharField(blank=True, max_length=2000, null=True, verbose_name='Link zum Förderplan'),
),
migrations.AddField(
model_name='project',
name='urls',
field=models.CharField(blank=True, max_length=2000, null=True, verbose_name='Weitere Links'),
),
migrations.AlterField(
model_name='businesscard',
name='email',
field=models.CharField(max_length=200, null=True, verbose_name='E-Mail-Adresse'),
),
migrations.AlterField(
model_name='businesscard',
name='realname',
field=models.CharField(max_length=200, null=True, verbose_name='Name / Hauptansprechperson'),
),
migrations.AlterField(
model_name='email',
name='email',
field=models.CharField(max_length=200, null=True, verbose_name='E-Mail-Adresse'),
),
migrations.AlterField(
model_name='email',
name='realname',
field=models.CharField(max_length=200, null=True, verbose_name='Name / Hauptansprechperson'),
),
migrations.AlterField(
model_name='honorarycertificate',
name='email',
field=models.CharField(max_length=200, null=True, verbose_name='E-Mail-Adresse'),
),
migrations.AlterField(
model_name='honorarycertificate',
name='realname',
field=models.CharField(max_length=200, null=True, verbose_name='Name / Hauptansprechperson'),
),
migrations.AlterField(
model_name='ifg',
name='email',
field=models.CharField(max_length=200, null=True, verbose_name='E-Mail-Adresse'),
),
migrations.AlterField(
model_name='ifg',
name='realname',
field=models.CharField(max_length=200, null=True, verbose_name='Name / Hauptansprechperson'),
),
migrations.AlterField(
model_name='library',
name='email',
field=models.CharField(max_length=200, null=True, verbose_name='E-Mail-Adresse'),
),
migrations.AlterField(
model_name='library',
name='realname',
field=models.CharField(max_length=200, null=True, verbose_name='Name / Hauptansprechperson'),
),
migrations.AlterField(
model_name='list',
name='email',
field=models.CharField(max_length=200, null=True, verbose_name='E-Mail-Adresse'),
),
migrations.AlterField(
model_name='list',
name='realname',
field=models.CharField(max_length=200, null=True, verbose_name='Name / Hauptansprechperson'),
),
migrations.AlterField(
model_name='literature',
name='email',
field=models.CharField(max_length=200, null=True, verbose_name='E-Mail-Adresse'),
),
migrations.AlterField(
model_name='literature',
name='realname',
field=models.CharField(max_length=200, null=True, verbose_name='Name / Hauptansprechperson'),
),
migrations.AlterField(
model_name='project',
name='email',
field=models.CharField(max_length=200, null=True, verbose_name='E-Mail-Adresse'),
),
migrations.AlterField(
model_name='project',
name='realname',
field=models.CharField(max_length=200, null=True, verbose_name='Name / Hauptansprechperson'),
),
migrations.AlterField(
model_name='project',
name='start',
field=models.DateField(blank=True, null=True, verbose_name='Startdatum'),
),
migrations.AlterField(
model_name='travel',
name='email',
field=models.CharField(max_length=200, null=True, verbose_name='E-Mail-Adresse'),
),
migrations.AlterField(
model_name='travel',
name='realname',
field=models.CharField(max_length=200, null=True, verbose_name='Name / Hauptansprechperson'),
),
]

View File

@ -6,9 +6,8 @@ from .settings import ACCOUNTS
class Volunteer(models.Model): class Volunteer(models.Model):
realname = models.CharField(max_length=200, null=True) realname = models.CharField(max_length=200, null=True, verbose_name="Name / Hauptansprechperson")
email = models.CharField(max_length=200, null=True) email = models.CharField(max_length=200, null=True, verbose_name='E-Mail-Adresse')
# username = models.CharField(max_length=200, null=True)
# the following Fields are not supposed to be edited by users # the following Fields are not supposed to be edited by users
granted = models.BooleanField(null=True) granted = models.BooleanField(null=True)
@ -43,9 +42,19 @@ class Extern(Volunteer):
abstract = True abstract = True
class Project(Volunteer): class Project(Volunteer):
name = models.CharField(max_length=200) name = models.CharField(max_length=200, verbose_name='Name des Projekts')
start = models.DateField('Startdatum', null=True) description = models.CharField(max_length=500, verbose_name="Kurzbeschreibung", null=True)
start = models.DateField('Startdatum', null=True, blank= True)
end = models.DateField('Erwartetes Projektende', null=True) end = models.DateField('Erwartetes Projektende', null=True)
otrs = models.CharField(max_length=300, null=True, verbose_name='OTRS-Link')
plan = models.CharField(max_length=2000, null=True, blank=True, verbose_name="Link zum Förderplan")
page = models.CharField(max_length=2000, null=True, blank=True, verbose_name="Link zur Projektseite")
urls = models.CharField(max_length=2000, null=True, blank=True, verbose_name="Weitere Links")
group = models.CharField(max_length=2000, null=True, blank=True, verbose_name="Mitorganisierende")
location = models.CharField(max_length=2000, null=True, blank=True, verbose_name="Ort/Adresse/Location")
participants_estimated = models.IntegerField(blank=True, null=True, verbose_name='Teilnehmende angefragt')
participants_real = models.IntegerField(blank=True, null=True, verbose_name='Teilnehmende ausgezählt')
account = models.CharField('Kostenstelle', max_length=5, account = models.CharField('Kostenstelle', max_length=5,
choices=ACCOUNTS.items(), null=True,) choices=ACCOUNTS.items(), null=True,)