Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

show post id on django admin interface

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

admin.site.register(Book, BookAdmin)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #show #post #id #django #admin #interface
ADD COMMENT
Topic
Name
3+5 =