How to design Django models?

This is my Django Models

class Course(models.Model):
    course_name = models.CharField(max_length=100, blank=True)

    def __str__(self):
        return self.course_name

class Video(models.Model):
    video_name = models.CharField(max_length=100, blank=True)
    video_link = models.CharField(max_length=500, blank=True)

    def __str__(self):
        return self.video_name

class Unit(models.Model):
    unit_name = models.CharField(max_length=100, blank=True)
    videos = models.ManyToManyField(Video)
    course = models.ForeignKey(Course, on_delete=models.CASCADE)

    def __str__(self):
        return self.unit_name

class Blog(models.Model):
    blog_name = models.CharField(max_length= 100)

    def __str__(self):
        return self.blog_name

Python Tutorial 2 Python Tutorial 1

I want my Python Tutorial 2 doesn't have a video list that Python Tutorial 1 has, but every unit in Python Tutorial 1 has the same video list, How I could modify my code to have that system?

Back to Top