Commit 97767914 authored by Patricia Isabella Nava's avatar Patricia Isabella Nava

Merge branch 'Nava/assignments'

parents 58545345 7fcd7d4b
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