Commit f24a38d9 authored by John Raymon C Yu's avatar John Raymon C Yu

Yu / Assignments

parent 757661c4
from django.contrib import admin
# Register your models here.
from .models import Assignment
admin.site.register(Assignment)
\ No newline at end of file
# Generated by Django 4.0.3 on 2022-03-30 15:44
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Assignment',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('assignment_name', models.CharField(max_length=100)),
('assignment_description', models.CharField(max_length=1000)),
('assignment_max_points', models.IntegerField()),
],
),
]
from django.db import models
# Create your models here.
class Assignment(models.Model):
assignment_name = models.CharField(max_length=100)
assignment_description = models.CharField(max_length=1000)
assignment_max_points = models.IntegerField()
def __str__(self):
return self.assignment_name
......@@ -38,6 +38,7 @@ INSTALLED_APPS = [
'announcements.apps.AnnouncementsConfig',
'homepage.apps.HomepageConfig',
'forum.apps.ForumConfig',
'assignments.apps.AssignmentsConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
......
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