Commit 076243d0 authored by Katrina Bernice Tan's avatar Katrina Bernice Tan

Fixed and migrated Assignments model, populated databases

parent a339ed4e
No preview for this file type
from django.contrib import admin from django.contrib import admin
# Register your models here. # 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-21 14:32
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')),
('name', models.CharField(max_length=69)),
('description', models.CharField(max_length=420)),
('max_points', models.IntegerField()),
],
),
]
from django.db import models from django.db import models
# Create your models here. # Create your models here.
class Assignment(models.Model):
name = models.CharField(max_length = 69)
description = models.CharField(max_length=420)
max_points = models.IntegerField()
\ No newline at end of file
# Generated by Django 4.0.3 on 2022-03-21 14:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='WidgetUser',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('first_name', models.CharField(max_length=50)),
('middle_name', models.CharField(max_length=50)),
('last_name', models.CharField(max_length=50)),
],
),
]
No preview for this file type
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