Changes between Initial Version and Version 11 of Ticket #26524
- Timestamp:
- May 10, 2016, 12:00:37 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26524
- Property Triage Stage Unreviewed → Accepted
- Property Summary Django Admin list_display - Unable to display foreign key id → Change foreign key id list_display reference to display only the id
- Property Type Bug → Cleanup/optimization
- Property Cc added
- Property Has patch set
-
Ticket #26524 – Description
initial v11 2 2 3 3 4 {{{ 4 {{{#!python 5 5 class A(models.Model): 6 6 name = models.CharField(max_length=100) 7 7 8 9 8 def __unicode__(self): 9 return self.name 10 10 11 11 class B(models.Model): 12 13 12 name = models.CharField(max_length=100) 13 fk = models.ForeignKey(A) 14 14 15 16 15 def __unicode__(self): 16 return self.name 17 17 }}} 18 18 … … 20 20 21 21 22 {{{ 22 {{{#!python 23 23 class AAdmin(admin.ModelAdmin): 24 24 list_display = ('id','name')