Commit c3093e822fe18bc3284ce5ae7d6424a0a98001c2
1 parent
fc206587
Exists in
master
and in
5 other branches
migrations
Showing
2 changed files
with
54 additions
and
0 deletions
Show diff stats
| @@ -0,0 +1,32 @@ | @@ -0,0 +1,32 @@ | ||
| 1 | +# -*- coding: utf-8 -*- | ||
| 2 | +# Generated by Django 1.10 on 2016-10-05 21:02 | ||
| 3 | +from __future__ import unicode_literals | ||
| 4 | + | ||
| 5 | +from django.db import migrations, models | ||
| 6 | +import django.db.models.deletion | ||
| 7 | + | ||
| 8 | + | ||
| 9 | +class Migration(migrations.Migration): | ||
| 10 | + | ||
| 11 | + initial = True | ||
| 12 | + | ||
| 13 | + dependencies = [ | ||
| 14 | + ('courses', '0002_subject_students'), | ||
| 15 | + ] | ||
| 16 | + | ||
| 17 | + operations = [ | ||
| 18 | + migrations.CreateModel( | ||
| 19 | + name='Avaliacao', | ||
| 20 | + fields=[ | ||
| 21 | + ('activity_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='courses.Activity')), | ||
| 22 | + ('name_avalicao', models.CharField(max_length=100, verbose_name='Name')), | ||
| 23 | + ('init_date', models.DateField(verbose_name='Begin of Avaliacao Date')), | ||
| 24 | + ('end_date', models.DateField(verbose_name='End of Avaliacao Date')), | ||
| 25 | + ], | ||
| 26 | + options={ | ||
| 27 | + 'verbose_name': 'Avaliacao', | ||
| 28 | + 'verbose_name_plural': 'Avaliacoes', | ||
| 29 | + }, | ||
| 30 | + bases=('courses.activity',), | ||
| 31 | + ), | ||
| 32 | + ] |
| @@ -0,0 +1,22 @@ | @@ -0,0 +1,22 @@ | ||
| 1 | +# -*- coding: utf-8 -*- | ||
| 2 | +# Generated by Django 1.10 on 2016-10-05 21:02 | ||
| 3 | +from __future__ import unicode_literals | ||
| 4 | + | ||
| 5 | +from django.conf import settings | ||
| 6 | +from django.db import migrations, models | ||
| 7 | + | ||
| 8 | + | ||
| 9 | +class Migration(migrations.Migration): | ||
| 10 | + | ||
| 11 | + dependencies = [ | ||
| 12 | + migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
| 13 | + ('courses', '0001_initial'), | ||
| 14 | + ] | ||
| 15 | + | ||
| 16 | + operations = [ | ||
| 17 | + migrations.AddField( | ||
| 18 | + model_name='subject', | ||
| 19 | + name='students', | ||
| 20 | + field=models.ManyToManyField(related_name='subject_student', to=settings.AUTH_USER_MODEL, verbose_name='Students'), | ||
| 21 | + ), | ||
| 22 | + ] |