Thanks for the help Rajesh. I had seen that quote before but it really
didnt click quite right until made painfully obvious.
Is there a cleaner way to acess parent model fields easily with the
list_display function itself? The only way I have been able to do so
is like this:
###
class Log(model
Actually, the document is pretty clear about this.
See: http://www.djangoproject.com/documentation/model_api/#list-display
.quote
For any element of list_display that is not a field on the model, the
change list page will not allow ordering by that column. This is
because ordering is done at the
I am trying to access parent class objects within the admin site with
the list display function.
The following are my models:
###
class Device(models.Model):
make = models.CharField(maxlength=30)
model = models.CharField(maxlength=50)
partno = models.CharField('part number
3 matches
Mail list logo