chore: add entries to Assignment model, add method in Assignment model class to show name

parent d61633f3
from django.contrib import admin from django.contrib import admin
# Register your models here. # 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
...@@ -6,3 +6,6 @@ class Assignment(models.Model): ...@@ -6,3 +6,6 @@ class Assignment(models.Model):
description = models.CharField(max_length=200) description = models.CharField(max_length=200)
max_points = models.IntegerField() max_points = models.IntegerField()
def __str__(self):
return self.name
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