Add additional custom member fields
This commit is contained in:
parent
5b377e5b19
commit
a191ccb762
3 changed files with 34 additions and 22 deletions
|
@ -20,6 +20,11 @@ class Migration(migrations.Migration):
|
||||||
('membership_type', models.CharField(max_length=100)),
|
('membership_type', models.CharField(max_length=100)),
|
||||||
('is_keyholder', models.BooleanField(default=False)),
|
('is_keyholder', models.BooleanField(default=False)),
|
||||||
('has_physical_key', models.BooleanField(default=False)),
|
('has_physical_key', models.BooleanField(default=False)),
|
||||||
|
('is_in_info_channels', models.BooleanField(default=False)),
|
||||||
|
('messenger', models.CharField(max_length=100, null=True, blank=True)),
|
||||||
|
('wiki', models.CharField(max_length=100, null=True, blank=True)),
|
||||||
|
('schaffen_email', models.EmailField(max_length=100, null=True, blank=True)),
|
||||||
|
('function', models.CharField(max_length=200, null=True, blank=True)),
|
||||||
('member', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='profile_schaffen', to='members.Member')),
|
('member', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='profile_schaffen', to='members.Member')),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Generated by Django 1.11.8 on 2018-01-13 13:30
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
import annoying.fields
|
|
||||||
from django.db import migrations
|
|
||||||
import django.db.models.deletion
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('byro_schaffenburg', '0001_initial'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='schaffenprofile',
|
|
||||||
name='member',
|
|
||||||
field=annoying.fields.AutoOneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile_shack', to='members.Member'),
|
|
||||||
),
|
|
||||||
]
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
from annoying.fields import AutoOneToOneField
|
from annoying.fields import AutoOneToOneField
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from byro.common.models.choices import Choices
|
from byro.common.models.choices import Choices
|
||||||
|
@ -26,3 +27,31 @@ class SchaffenProfile(models.Model):
|
||||||
default=False,
|
default=False,
|
||||||
verbose_name=("Besitzt physischen Schlüssel"),
|
verbose_name=("Besitzt physischen Schlüssel"),
|
||||||
)
|
)
|
||||||
|
is_in_info_channels = models.BooleanField(
|
||||||
|
default=False,
|
||||||
|
verbose_name=("Ist aufgenommen in Infokanäle"),
|
||||||
|
)
|
||||||
|
messenger = models.CharField(
|
||||||
|
max_length=100,
|
||||||
|
verbose_name=("Messenger (Telegram)"),
|
||||||
|
null=True,
|
||||||
|
blank=True
|
||||||
|
)
|
||||||
|
wiki = models.CharField(
|
||||||
|
max_length=100,
|
||||||
|
verbose_name=("Wiki-Benutzername"),
|
||||||
|
null=True,
|
||||||
|
blank=True
|
||||||
|
)
|
||||||
|
schaffen_email = models.EmailField(
|
||||||
|
max_length=100,
|
||||||
|
verbose_name=("Schaffenburg E-Mail-Adresse"),
|
||||||
|
null=True,
|
||||||
|
blank=True
|
||||||
|
)
|
||||||
|
function = models.CharField(
|
||||||
|
max_length=200,
|
||||||
|
verbose_name=("Vereinsfunktion"),
|
||||||
|
null=True,
|
||||||
|
blank=True
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue