Answers for "show post id on django admin interface"

0

show post id on django admin interface

class BookAdmin(admin.ModelAdmin):
    readonly_fields = ('id',)

admin.site.register(Book, BookAdmin)
Posted by: Guest on April-17-2020

Python Answers by Framework

Browse Popular Code Answers by Language