1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-23 07:52:23 +00:00

Make section optinal for an user

This commit is contained in:
Alexandre Iooss 2019-07-16 13:54:32 +02:00
parent 7043ab5e45
commit 8a44f81d2c
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
4 changed files with 9 additions and 8 deletions

View File

@ -1,4 +1,4 @@
# Generated by Django 2.2.3 on 2019-07-16 11:44
# Generated by Django 2.2.3 on 2019-07-16 11:53
from django.conf import settings
from django.db import migrations, models
@ -10,8 +10,8 @@ class Migration(migrations.Migration):
initial = True
dependencies = [
('note', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('note', '0001_initial'),
('member', '0001_initial'),
]

View File

@ -1,4 +1,4 @@
# Generated by Django 2.2.3 on 2019-07-16 11:44
# Generated by Django 2.2.3 on 2019-07-16 11:53
from django.conf import settings
from django.db import migrations, models
@ -46,8 +46,8 @@ class Migration(migrations.Migration):
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('profile_picture', models.ImageField(blank=True, max_length=255, upload_to='', verbose_name='profile picture')),
('phone_number', models.CharField(blank=True, default='', max_length=50, null=True, verbose_name='phone number')),
('section', models.CharField(help_text='e.g. "1A0", "9A♥", "SAPHIRE"', max_length=255, verbose_name='section')),
('phone_number', models.CharField(blank=True, max_length=50, null=True, verbose_name='phone number')),
('section', models.CharField(blank=True, help_text='e.g. "1A0", "9A♥", "SAPHIRE"', max_length=255, null=True, verbose_name='section')),
('address', models.CharField(blank=True, max_length=255, null=True, verbose_name='address')),
('paid', models.BooleanField(default=False, verbose_name='paid')),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),

View File

@ -30,12 +30,13 @@ class Profile(models.Model):
max_length=50,
blank=True,
null=True,
default='',
)
section = models.CharField(
verbose_name=_('section'),
help_text=_('e.g. "1A0", "9A♥", "SAPHIRE"'),
max_length=255,
blank=True,
null=True,
)
address = models.CharField(
verbose_name=_('address'),

View File

@ -1,4 +1,4 @@
# Generated by Django 2.2.3 on 2019-07-16 11:44
# Generated by Django 2.2.3 on 2019-07-16 11:53
from django.conf import settings
from django.db import migrations, models
@ -11,8 +11,8 @@ class Migration(migrations.Migration):
initial = True
dependencies = [
('member', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('member', '0001_initial'),
]
operations = [