Changes between Initial Version and Version 11 of Ticket #26524


Ignore:
Timestamp:
May 10, 2016, 12:00:37 PM (8 years ago)
Author:
Tobin Brown
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26524

    • Property Triage Stage UnreviewedAccepted
    • Property Summary Django Admin list_display - Unable to display foreign key idChange foreign key id list_display reference to display only the id
    • Property Type BugCleanup/optimization
    • Property Cc krishna.bmsce@… zachborboa@… added
    • Property Has patch set
  • Ticket #26524 – Description

    initial v11  
    22
    33
    4 {{{
     4{{{#!python
    55class A(models.Model):
    6         name = models.CharField(max_length=100)
     6    name = models.CharField(max_length=100)
    77
    8         def __unicode__(self):
    9                 return self.name
     8    def __unicode__(self):
     9        return self.name
    1010
    1111class B(models.Model):
    12         name = models.CharField(max_length=100)
    13         fk = models.ForeignKey(A)
     12    name = models.CharField(max_length=100)
     13    fk = models.ForeignKey(A)
    1414       
    15         def __unicode__(self):
    16                 return self.name
     15    def __unicode__(self):
     16        return self.name
    1717}}}
    1818
     
    2020
    2121
    22 {{{
     22{{{#!python
    2323class AAdmin(admin.ModelAdmin):
    2424    list_display = ('id','name')
Back to Top