Commit 51253f93 authored by Joan Denise Nocos's avatar Joan Denise Nocos

feat: added Course model to assignments app

parent a830d22d
# Generated by Django 3.2.12 on 2022-04-05 04:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('assignments', '0002_assignment_passing_score'),
]
operations = [
migrations.CreateModel(
name='Course',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('course_code', models.CharField(max_length=10)),
('course_title', models.CharField(max_length=256)),
('section', models.CharField(max_length=3)),
],
),
]
......@@ -8,4 +8,9 @@ class Assignment(models.Model):
passing_score = models.IntegerField(default=0)
def _str_(self):
return self.name
\ No newline at end of file
return self.name
class Course(models.Model):
course_code = models.CharField(max_length=10)
course_title = models.CharField(max_length=256)
section = models.CharField(max_length=3)
\ No newline at end of file
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