I have the following model classes:
class Category(models.Model): category = models.CharField(\'category\', max_length=200, blank=False) class Book(models.M
class CategoryInline(admin.TabularInline): model = Book_Category extra = 3 # choose any number class BookAdmin(admin.ModelAdmin): inlines = (CategoryInline,) admin.site.register(Book, BookAdmin)
Docs