mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
@@ -4,9 +4,11 @@ from django.db import models
|
||||
class Publisher(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
|
||||
class Author(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
|
||||
class Book(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
authors = models.ManyToManyField(Author, related_name='books')
|
||||
|
||||
Reference in New Issue
Block a user