Commit 56cc32ca authored by Star Neptune R. Sy's avatar Star Neptune R. Sy

populated the data

parent e073ed3d
# Generated by Django 3.2 on 2023-03-05 09:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('assignments', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='course',
name='course_code',
field=models.CharField(default='', max_length=10, unique=True),
),
]
...@@ -20,6 +20,9 @@ class Assignment(models.Model): ...@@ -20,6 +20,9 @@ class Assignment(models.Model):
on_delete=models.CASCADE, on_delete=models.CASCADE,
related_name='subject' related_name='subject'
) )
def __str__(self):
return '{} {}-'.format(self.assignment_name, self.section,)
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