Skip to content
Snippets Groups Projects
Commit 5ac55df1 authored by Barnabás Czémán's avatar Barnabás Czémán
Browse files

Set nick & motvation to empty string

parent 94a9d63c
No related branches found
No related tags found
No related merge requests found
# Generated by Django 2.0.1 on 2018-02-03 19:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0015_auto_20180203_2014'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='motivation',
field=models.TextField(blank=True, default=''),
),
migrations.AlterField(
model_name='profile',
name='nick',
field=models.CharField(blank=True, default='', max_length=15),
),
]
......@@ -22,8 +22,9 @@ class Profile(models.Model):
join_date = models.DateTimeField(auto_now_add=True, editable=False)
updated_at = models.DateTimeField(auto_now=True, editable=False)
user = models.OneToOneField(User, related_name='profile', on_delete=models.CASCADE)
motivation = models.TextField(null=True)
nick = models.CharField(max_length=15, blank=True, null=True)
# TODO: Change the default to json render side
motivation = models.TextField(blank=True, default='')
nick = models.CharField(max_length=15, blank=True, default='')
signed = models.BooleanField(default=False, null=False)
groups = models.ManyToManyField(GroupChoice, related_name='profiles')
# Homeworks=models.ForeignKey(Homework)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment