Commit d41cff2fd4f0dc3ba28894ea7391cede10838227

Authored by Matheus Lins
1 parent 1905b483

migrations

exercise/migrations/0002_auto_20161117_0555.py 0 → 100644
... ... @@ -0,0 +1,31 @@
  1 +# -*- coding: utf-8 -*-
  2 +# Generated by Django 1.10 on 2016-11-17 08:55
  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 + dependencies = [
  12 + ('exercise', '0001_initial'),
  13 + ]
  14 +
  15 + operations = [
  16 + migrations.AlterField(
  17 + model_name='exercise',
  18 + name='file',
  19 + field=models.FileField(upload_to='uploads/%Y/%m/%d'),
  20 + ),
  21 + migrations.AlterField(
  22 + model_name='exercise',
  23 + name='name_exercise',
  24 + field=models.CharField(max_length=100, verbose_name='Name'),
  25 + ),
  26 + migrations.AlterField(
  27 + model_name='exercise',
  28 + name='topic',
  29 + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='exercise_topic', to='courses.Topic', verbose_name='Topic'),
  30 + ),
  31 + ]
... ...
exercise/migrations/0003_auto_20161118_2242.py 0 → 100644
... ... @@ -0,0 +1,21 @@
  1 +# -*- coding: utf-8 -*-
  2 +# Generated by Django 1.10 on 2016-11-19 01:42
  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 + dependencies = [
  12 + ('exercise', '0002_auto_20161117_0555'),
  13 + ]
  14 +
  15 + operations = [
  16 + migrations.AlterField(
  17 + model_name='exercise',
  18 + name='file_type',
  19 + field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='exercise_type', to='core.MimeType', verbose_name='Type file'),
  20 + ),
  21 + ]
... ...
exercise/templates/exercise/render_exercise.html 0 → 100644
... ... @@ -0,0 +1 @@
  1 +<li id="exercise_{{ exercise.slug }}"><i class="material-icons">{{ exercise.file_type.icon }}</i> <a href="{{ exercise.file_url.url }}" target="_blank">{{ exercise.name }}</a></li>
0 2 \ No newline at end of file
... ...