Skip to content

Commit 9a96590

Browse files
committed
Add models in admin site
1 parent b1a5a12 commit 9a96590

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

books/admin.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
from django.contrib import admin
2+
from books.models import Book, Author, Publisher
23

3-
# Register your models here.
4+
admin.site.register(Book)
5+
admin.site.register(Author)
6+
admin.site.register(Publisher)

0 commit comments

Comments
 (0)