Commit d1d566d31e0211d7df280a8e52c8f6428e7f4279
1 parent
5db71839
Exists in
master
and in
5 other branches
Migration of a new fields in user model #186
Showing
3 changed files
with
77 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,22 @@ | @@ -0,0 +1,22 @@ | ||
1 | +# -*- coding: utf-8 -*- | ||
2 | +# Generated by Django 1.10 on 2016-10-21 10:41 | ||
3 | +from __future__ import unicode_literals | ||
4 | + | ||
5 | +from django.db import migrations, models | ||
6 | +import django.utils.timezone | ||
7 | + | ||
8 | + | ||
9 | +class Migration(migrations.Migration): | ||
10 | + | ||
11 | + dependencies = [ | ||
12 | + ('users', '0001_initial'), | ||
13 | + ] | ||
14 | + | ||
15 | + operations = [ | ||
16 | + migrations.AlterField( | ||
17 | + model_name='user', | ||
18 | + name='birth_date', | ||
19 | + field=models.DateField(default=django.utils.timezone.now, verbose_name='Birth Date'), | ||
20 | + preserve_default=False, | ||
21 | + ), | ||
22 | + ] |
@@ -0,0 +1,35 @@ | @@ -0,0 +1,35 @@ | ||
1 | +# -*- coding: utf-8 -*- | ||
2 | +# Generated by Django 1.10 on 2016-10-21 11:12 | ||
3 | +from __future__ import unicode_literals | ||
4 | + | ||
5 | +from django.db import migrations, models | ||
6 | + | ||
7 | + | ||
8 | +class Migration(migrations.Migration): | ||
9 | + | ||
10 | + dependencies = [ | ||
11 | + ('users', '0002_auto_20161021_0741'), | ||
12 | + ] | ||
13 | + | ||
14 | + operations = [ | ||
15 | + migrations.AddField( | ||
16 | + model_name='user', | ||
17 | + name='curriculum', | ||
18 | + field=models.FileField(null=True, upload_to='users/curriculum/', verbose_name='Curriculum'), | ||
19 | + ), | ||
20 | + migrations.AddField( | ||
21 | + model_name='user', | ||
22 | + name='institution', | ||
23 | + field=models.CharField(blank=True, max_length=50, null=True, verbose_name='Institution where he had titration'), | ||
24 | + ), | ||
25 | + migrations.AddField( | ||
26 | + model_name='user', | ||
27 | + name='titration', | ||
28 | + field=models.CharField(blank=True, max_length=50, null=True, verbose_name='Titration'), | ||
29 | + ), | ||
30 | + migrations.AddField( | ||
31 | + model_name='user', | ||
32 | + name='year_titration', | ||
33 | + field=models.CharField(blank=True, max_length=4, null=True, verbose_name='Year of titration'), | ||
34 | + ), | ||
35 | + ] |
@@ -0,0 +1,20 @@ | @@ -0,0 +1,20 @@ | ||
1 | +# -*- coding: utf-8 -*- | ||
2 | +# Generated by Django 1.10 on 2016-10-21 11:20 | ||
3 | +from __future__ import unicode_literals | ||
4 | + | ||
5 | +from django.db import migrations, models | ||
6 | + | ||
7 | + | ||
8 | +class Migration(migrations.Migration): | ||
9 | + | ||
10 | + dependencies = [ | ||
11 | + ('users', '0003_auto_20161021_0812'), | ||
12 | + ] | ||
13 | + | ||
14 | + operations = [ | ||
15 | + migrations.AlterField( | ||
16 | + model_name='user', | ||
17 | + name='curriculum', | ||
18 | + field=models.FileField(blank=True, null=True, upload_to='users/curriculum/', verbose_name='Curriculum'), | ||
19 | + ), | ||
20 | + ] |