All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 2m29s
13 lines
325 B
Python
13 lines
325 B
Python
from django.db import models
|
|
|
|
|
|
class Course(models.Model):
|
|
name = models.CharField(max_length=200, unique=True)
|
|
code = models.CharField(max_length=50, blank=True)
|
|
description = models.TextField(blank=True)
|
|
created_at = models.DateTimeField(auto_now_add=True)
|
|
|
|
def __str__(self):
|
|
return self.name
|
|
|