Commit 2581dc61 authored by Laury Bueno's avatar Laury Bueno
Browse files

[Courses] Add "course_load" field to Course model

parent 84414fba
# Generated by Django 2.2.16 on 2020-09-22 14:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0016_class_certificate_template'),
]
operations = [
migrations.AddField(
model_name='course',
name='course_load',
field=models.IntegerField(null=True, verbose_name='Course Load'),
),
]
...@@ -70,6 +70,10 @@ class Course(models.Model): ...@@ -70,6 +70,10 @@ class Course(models.Model):
_('Workload'), _('Workload'),
blank=True, blank=True,
) )
course_load = models.IntegerField(
_('Course Load'),
null=True,
)
pronatec = models.TextField( pronatec = models.TextField(
_('Pronatec'), _('Pronatec'),
blank=True, blank=True,
...@@ -343,7 +347,7 @@ class CourseStudent(models.Model): ...@@ -343,7 +347,7 @@ class CourseStudent(models.Model):
def _activities_and_course_finished(self): def _activities_and_course_finished(self):
""" """
This method verifies if the user made all discussion activities This method verifies if the user made all discussion activities
AND has the perent progress AND has the perent progress
""" """
from courses_learning_objects.models import LearningObject, Answer from courses_learning_objects.models import LearningObject, Answer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment