Commit fd1c12cd authored by Chester Tan's avatar Chester Tan

added and populated Assignments model

parent 984276f6
from django.contrib import admin from django.contrib import admin
# Register your models here. from .models import Assignment
class AssignmentAdmin(admin.ModelAdmin):
model = Assignment
admin.site.register(Assignment, AssignmentAdmin)
\ No newline at end of file
# Generated by Django 4.0.3 on 2022-03-22 06:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('assignments', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='assignment',
name='name',
field=models.CharField(max_length=30),
),
]
from django.db import models from django.db import models
class Assignment(models.Model): class Assignment(models.Model):
name=models.CharField(max_length=10) name=models.CharField(max_length=30)
description=models.TextField(max_length=500) description=models.TextField(max_length=500)
max_points=models.IntegerField() max_points=models.IntegerField()
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