The Category model is using the old way of telling the admin app to include it in the admin section. Read this to know more.
If you have read the previous posts you should be able to know by now what is wrong and how to correct it. But in case you don’t, here is what you need to change to make it work:
1. Delete the following 2 lines:
class Admin:
pass
2. Go to the folder where you added the models.py file(If you are following the book verbatim it should be named coltrane), create a file called admin.py and the following code to it:
from django.contrib import admin from coltrane.models import Category admin.site.register(Category)
Spoiler: You will have to change the code above to include other options before the chapter is over
Thanks for this blog. I am new at development and this was a big help.