Re: Display Model.id in fieldsets used in Admin Site

2012-11-12 Thread Orit Kislev
i know this was asked long time ago but i guess others are looking for the answer as well (as i did), so im publishing my answer here. To view the id all you have to do is add it to the read only fields: readonly_fields = ['id'] בתאריך יום שישי, 27 במאי 2011 23:19:56 UTC+3, מאת Frisbie: > > Hello

Display Model.id in fieldsets used in Admin Site

2011-05-27 Thread Frisbie
Hello, Is there any way to display a display a Model's id field using the fieldsets field in the Admin model? For example: class CodeJobAdmin(admin.ModelAdmin): fieldsets = [ #('JobID', {'fields': ['id']}), ('Status', {'fields': ['status', 'owners']}), # more fields...