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
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...
2 matches
Mail list logo